|
|
Description[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
Committed: https://crrev.com/51f4e51682e2241f394ea2c13c6fb2fff039cefb
Cr-Commit-Position: refs/heads/master@{#406480}
Patch Set 1 #
Total comments: 9
Patch Set 2 : Address comments from PS1 #
Total comments: 2
Patch Set 3 : Remove extra spaces #
Messages
Total messages: 27 (16 generated)
jkarlin@chromium.org changed reviewers: + thakis@chromium.org
thakis: PTAL, thanks! sashab: FYI
Description was changed from ========== [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). 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 ========== to ========== [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 ==========
Description was changed from ========== [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 ========== to ========== [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 ==========
Patchset #2 (id:20001) has been deleted
thakis@chromium.org changed reviewers: + sashab@chromium.org
sashab should review this. (why not make sublime/ninja_options_script.py use the vim script, if that's what you want to do?)
https://codereview.chromium.org/2129993002/diff/1/docs/linux_sublime_dev.md File docs/linux_sublime_dev.md (right): https://codereview.chromium.org/2129993002/diff/1/docs/linux_sublime_dev.md#n... docs/linux_sublime_dev.md:303: "sublimeclang_options_script": "python ${project_path}/src/tools/sublime/compile_flags.py -d '${project_path}/../depot_tools'", Just for default arguments sake, I would change this to -d '/path/to/depot_tools'. https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags.py File tools/sublime/compile_flags.py (right): https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:1: #!/usr/bin/python Just rename this to ninja_options_script.py and delete the current one. https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:10: # -d '${project_path}/../depot_tools'" -d '/path/to/depot_tools' https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:10: # -d '${project_path}/../depot_tools'" -d '/path/to/depot_tools' https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:14: # and SublimgClang passes the absolute file path to the current file as an SublimeClang*
Patchset #2 (id:40001) has been deleted
Patchset #2 (id:60001) has been deleted
Thanks! PTAL sashab@ https://codereview.chromium.org/2129993002/diff/1/docs/linux_sublime_dev.md File docs/linux_sublime_dev.md (right): https://codereview.chromium.org/2129993002/diff/1/docs/linux_sublime_dev.md#n... docs/linux_sublime_dev.md:303: "sublimeclang_options_script": "python ${project_path}/src/tools/sublime/compile_flags.py -d '${project_path}/../depot_tools'", On 2016/07/08 00:58:26, sashab wrote: > Just for default arguments sake, I would change this to -d > '/path/to/depot_tools'. Done. https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags.py File tools/sublime/compile_flags.py (right): https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:1: #!/usr/bin/python On 2016/07/08 00:58:26, sashab wrote: > Just rename this to ninja_options_script.py and delete the current one. Done. Note that the parameters are different, so this will break current users. I can send out a PSA to chromium-dev after landing. https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:10: # -d '${project_path}/../depot_tools'" On 2016/07/08 00:58:27, sashab wrote: > -d '/path/to/depot_tools' Done. https://codereview.chromium.org/2129993002/diff/1/tools/sublime/compile_flags... tools/sublime/compile_flags.py:14: # and SublimgClang passes the absolute file path to the current file as an On 2016/07/08 00:58:26, sashab wrote: > SublimeClang* Done.
Patchset #2 (id:80001) has been deleted
lgtm!! Tyvm Also chromium-dev PSA for the changed parameters sgtm :)
jkarlin@chromium.org changed reviewers: + dpranke@chromium.org - thakis@chromium.org
Thanks! dpranke@ PTAL
lgtm. https://codereview.chromium.org/2129993002/diff/100001/tools/sublime/ninja_op... File tools/sublime/ninja_options_script.py (right): https://codereview.chromium.org/2129993002/diff/100001/tools/sublime/ninja_op... tools/sublime/ninja_options_script.py:44: main() nit: two spaces here?
The CQ bit was checked by jkarlin@chromium.org to run a CQ dry run
Thanks! https://codereview.chromium.org/2129993002/diff/100001/tools/sublime/ninja_op... File tools/sublime/ninja_options_script.py (right): https://codereview.chromium.org/2129993002/diff/100001/tools/sublime/ninja_op... tools/sublime/ninja_options_script.py:44: main() On 2016/07/20 02:00:31, Dirk Pranke wrote: > nit: two spaces here? Done.
The CQ bit was unchecked by jkarlin@chromium.org
The CQ bit was checked by jkarlin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org, sashab@chromium.org Link to the patchset: https://codereview.chromium.org/2129993002/#ps120001 (title: "Remove extra spaces")
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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 Committed: https://crrev.com/51f4e51682e2241f394ea2c13c6fb2fff039cefb Cr-Commit-Position: refs/heads/master@{#406480} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/51f4e51682e2241f394ea2c13c6fb2fff039cefb Cr-Commit-Position: refs/heads/master@{#406480} |