llvm-project/clang/lib/Tooling
Sam McCall 60d74e4588 [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.
Summary:
This is an alternative to JSONCompilationDatabase for simple projects that
don't use a build system such as CMake.
(You can also drop one in ~, to make your tools use e.g. C++11 by default)

There's no facility for varying flags per-source-file or per-machine.
Possibly this could be accommodated backwards-compatibly using cpp, but even if
not the simplicity seems worthwhile for the cases that are addressed.

Tested with clangd, works great! (requires clangd restart)

Reviewers: klimek

Subscribers: ilya-biryukov, cfe-commits

Differential Revision: https://reviews.llvm.org/D39799

llvm-svn: 317777
2017-11-09 10:37:39 +00:00
..
ASTDiff [clang-diff] Treat CXXCtorInitializer as a node 2017-08-27 22:52:20 +00:00
Core Moved QualTypeNames.h from Tooling to AST. 2017-11-08 10:39:03 +00:00
Refactoring [clang-refactor] Get rid of OccurrencesFinder in RenamingAction, NFC 2017-11-08 14:53:08 +00:00
ArgumentsAdjusters.cpp [Tooling] A new framework for executing clang frontend actions. 2017-10-26 10:38:14 +00:00
CMakeLists.txt [Tooling] A new framework for executing clang frontend actions. 2017-10-26 10:38:14 +00:00
CommonOptionsParser.cpp [Tooling] A new framework for executing clang frontend actions. 2017-10-26 10:38:14 +00:00
CompilationDatabase.cpp [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found. 2017-11-09 10:37:39 +00:00
Execution.cpp [Tooling] Fix linking of StandaloneToolExecutorPlugin. 2017-11-03 15:57:27 +00:00
FileMatchTrie.cpp Tooling: Hide implementation details 2015-03-09 15:03:26 +00:00
FixIt.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
JSONCompilationDatabase.cpp [Tooling] Remove redundant check, NFCi 2017-05-05 14:07:23 +00:00
Refactoring.cpp Apply clang-tidy's performance-unnecessary-value-param to parts of clang. 2017-03-21 21:35:04 +00:00
RefactoringCallbacks.cpp [tooling] RefactoringCallbacks code cleanup 2017-05-12 00:16:56 +00:00
StandaloneExecution.cpp [Tooling] Fix linking of StandaloneToolExecutorPlugin. 2017-11-03 15:57:27 +00:00
Tooling.cpp [Tooling] A new framework for executing clang frontend actions. 2017-10-26 10:38:14 +00:00