llvm-project/clang-tools-extra/include-fixer/find-all-symbols
Richard Smith 02c3baaad2 Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
This is a short-term fix for PR33650 aimed to get the modules build bots green again.

Remove all the places where we use the LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
macros to try to locally specialize a global template for a global type. That's
not how C++ works.

Instead, we now centrally define how to format vectors of fundamental types and
of string (std::string and StringRef). We use flow formatting for the former
cases, since that's the obvious right thing to do; in the latter case, it's
less clear what the right choice is, but flow formatting is really bad for some
cases (due to very long strings), so we pick block formatting. (Many of the
cases that were using flow formatting for strings are improved by this change.)

Other than the flow -> block formatting change for some vectors of strings,
this should result in no functionality change.

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

Corresponding LLVM change is r306878.

llvm-svn: 306879
2017-06-30 20:57:16 +00:00
..
tool Revert "[include-fixer] Don't throw exception when parsing unknown arguments in vim script." 2017-05-17 09:24:28 +00:00
CMakeLists.txt [include-fixer] use includer of .inc header to be the file path of a symbol from .inc header. 2016-06-01 12:01:06 +00:00
FindAllMacros.cpp [include-fixer] Remove line number from Symbol identity 2017-03-09 10:47:44 +00:00
FindAllMacros.h [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
FindAllSymbols.cpp [include-fixer] Remove line number from Symbol identity 2017-03-09 10:47:44 +00:00
FindAllSymbols.h [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
FindAllSymbolsAction.cpp [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
FindAllSymbolsAction.h [include-fixer] Fix some Clang-tidy modernize-use-override and Include What You Use warnings; other minor fixes. 2016-09-06 19:53:26 +00:00
HeaderMapCollector.cpp [include-fixer] make HeaderMapCollector maps from regex instead of postfix. 2016-07-04 11:22:35 +00:00
HeaderMapCollector.h [include-fixer] reduce stack size by changing RegexHeaderMap to use const char * pair. 2016-07-04 13:34:11 +00:00
PathConfig.cpp [include-fixer] Keep dot dot in SymbolInfo file paths. 2016-06-08 15:10:18 +00:00
PathConfig.h [include-fixer] use includer of .inc header to be the file path of a symbol from .inc header. 2016-06-01 12:01:06 +00:00
PragmaCommentHandler.cpp [find-all-symbols] Add IWYU private pragma support. 2016-05-17 16:48:49 +00:00
PragmaCommentHandler.h [find-all-symbols] Add IWYU private pragma support. 2016-05-17 16:48:49 +00:00
STLPostfixHeaderMap.cpp [include-fixer] Correct some header mappings. 2016-08-05 11:54:34 +00:00
STLPostfixHeaderMap.h [include-fixer] make HeaderMapCollector maps from regex instead of postfix. 2016-07-04 11:22:35 +00:00
SymbolInfo.cpp Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:57:16 +00:00
SymbolInfo.h [include-fixer] Remove line number from Symbol identity 2017-03-09 10:47:44 +00:00
SymbolReporter.h [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00