We can track this probably in:

  

      github.com/tensorflow/build
  

  
    
  
	  
  

  
    
      compile_commands.json
    

    
      
        opened 
        
          
        
        May 27, 2020
      
      


      
        
          
          bhack
        
      
    

    
    
  


  
    It could be nice if we could generate/distribute `compile_commands.json` to bett…er interact with some IDE and our c++ code.

I.e. In Bazel and also in Vscode the the official Bazel team vscode plugin we don't have in tree support to generate `compile_commands`:
https://github.com/bazelbuild/bazel/issues/258
https://github.com/bazelbuild/vscode-bazel/issues/179

I've tried some quite popular community workaround like:
https://github.com/grailbio/bazel-compilation-database

But the problem is that we are using `--action_env` for `build` when we generate our `.bazelrc`  with `python configure.py` and so these arguments not supported in other command like  e.g. `bazel query` https://github.com/bazelbuild/bazel/issues/10226. 
This is going to invalidate the official bazel vscode plugin that need to execute `query command` but also the `bazel-compilation-database` workaround cause we have problem to retrieve our env variable.