Clang complete in mozilla: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 14: Line 14:
   vim clang_complete.vmb -c 'so %' -c 'q'
   vim clang_complete.vmb -c 'so %' -c 'q'


Now go to your root source directory and put the following in moz_clang_complete.sh
Now go to your root source directory and run |./mach clang-complete > .clang_complete| to generate .clang_complete under the root directory of your source code.
 
Or put the following in moz_clang_complete.sh in root source directory if your Gecko code base doesn't support |./mach clang-complete|.


   #!/bin/sh
   #!/bin/sh
Line 44: Line 46:
   echo -I$MOZ_SRC/ipc/chromium/src -I$MOZ_SRC/ipc/glue -I../../ipc/ipdl/_ipdlheaders
   echo -I$MOZ_SRC/ipc/chromium/src -I$MOZ_SRC/ipc/glue -I../../ipc/ipdl/_ipdlheaders


Now run the script to generate .clang_complete in the root of your source directory:
Then, run the script to generate .clang_complete in the root of your source directory:


   chmod +x moz_clang_complete.sh && ./moz_clang_complete.sh > .clang_complete
   chmod +x moz_clang_complete.sh && ./moz_clang_complete.sh > .clang_complete
Confirmed users
216

edits