[SublimeText] Get the clang flags with the same script that vim uses
The sublime script to get the clang flags doesn't work for many files (e.g., those with $ line continuations in the ninja files). Rather than fix it, we should merge with vim's ycm generator which has to do the same thing and has been in use for quite some time. BUG=626409 Review-Url: https://codereview.chromium.org/2129993002 Cr-Commit-Position: refs/heads/master@{#406480}
This commit is contained in:
@ -286,7 +286,7 @@ page](https://github.com/quarnster/SublimeClang).
|
||||
```
|
||||
|
||||
1. Edit your project file `Project > Edit Project` to call the script above
|
||||
(replace `out/Debug` with your out directory):
|
||||
(replace `/path/to/depot_tools` with your depot_tools directory):
|
||||
|
||||
```
|
||||
{
|
||||
@ -300,7 +300,7 @@ page](https://github.com/quarnster/SublimeClang).
|
||||
[
|
||||
"-Wno-attributes",
|
||||
],
|
||||
"sublimeclang_options_script": "python ${project_path}/src/tools/sublime/ninja_options_script.py ${project_path}/src ${project_path}/src/out/Debug",
|
||||
"sublimeclang_options_script": "python ${project_path}/src/tools/sublime/ninja_options_script.py -d '/path/to/depot_tools'",
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user