summaryrefslogtreecommitdiff
path: root/test/test_c_flag_parsing.vader
AgeCommit message (Collapse)Author
2019-04-15#782 - Use compile commands for matching source files for headersw0rp
2019-01-27Fix #2195 - Handle the command key being missingw0rp
2019-01-24Parse more C/C++ compiler optionsLouis Xu
2019-01-10Merge pull request #2191 from davidvandebunte/fixCompDbDirw0rp
bugfix: c.vim: Pull build directory from compilation database
2019-01-09Cflags: added a test caseFrançois-Xavier Carton
2019-01-08bugfix: c.vim: Pull build directory from compilation databaseDavid VandeBunte
The LLVM compiler database JSON already includes a directory where the build was performed: https://clang.llvm.org/docs/JSONCompilationDatabase.html Prefer this directory for fixing relative paths in compiler include arguments in ale#c#ParseCFlags. Without this change, users cannot create a symlink to their compilation database as suggested in the LLVM tooling setup instructions: https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
2019-01-06Improve perf for compile dbs in large projectsJacob Segal
When using a compilation database (compile_commands.json) in very large projects, significant delays would occur when changing files -- particularly those that happened to be far down the db. Rather than iterating over the whole list every time, we now build up a lookup table based on the tail of the filename (and tail of the directory for widening searches) and iterate over the much smaller list of compile commands for files with the given name. Test metrics (from compile_database_perf/test.sh) show a 90% performance improvement -- from 25 seconds to 2.5 seconds per run.
2018-12-29Add a test for cflags merging bugFrançois-Xavier Carton
2018-11-17Fix bug where last c flag was ignoredJacob Segal
There is currently a check that tries to prevent c-flags that contain '-' in them from being unintentionally split and included in the list of commands. For example, we wouldn't want "-fno-exceptions " to appear as "-fno" and "-exceptions ". The way this check was done was by making sure the last character of the split string was a space. This meant that the very last option to appear in the compile command was ignored (as it doesn't end with a space). This fix explicitly skips the ends-with-space check on the last option in the command-line. This isn't the best fix. Really we should be using the same argument-processing rules as a shell would rather than just splitting on '-'. That's a much larger and more complicated change though.
2018-09-18add test for arguments with '--'James Ye
2018-07-29Try to fix the C parsing test on Windowsw0rp
2018-07-29Add support for parsing compile_commands.json files for C compilersw0rp