llvm-project/clang-tools-extra/include-fixer
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
..
find-all-symbols Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:57:16 +00:00
plugin [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
tool Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:57:16 +00:00
CMakeLists.txt [include-fixer] Add fuzzy SymbolIndex, where identifier needn't match exactly. 2017-03-13 15:55:59 +00:00
FuzzySymbolIndex.cpp [include-fixer] Add fuzzy SymbolIndex, where identifier needn't match exactly. 2017-03-13 15:55:59 +00:00
FuzzySymbolIndex.h [include-fixer] Add fuzzy SymbolIndex, where identifier needn't match exactly. 2017-03-13 15:55:59 +00:00
InMemorySymbolIndex.cpp [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
InMemorySymbolIndex.h [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
IncludeFixer.cpp [include-fixer] Remove line number from Symbol identity 2017-03-09 10:47:44 +00:00
IncludeFixer.h Reapply "Fix for shared_ptrification in Clang" 2017-01-06 19:49:09 +00:00
IncludeFixerContext.cpp [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
IncludeFixerContext.h [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
SymbolIndex.h [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
SymbolIndexManager.cpp [include-fixer] Add fuzzy SymbolIndex, where identifier needn't match exactly. 2017-03-13 15:55:59 +00:00
SymbolIndexManager.h Spelling mistakes in comments. NFCI. 2017-03-30 13:10:33 +00:00
YamlSymbolIndex.cpp [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
YamlSymbolIndex.h [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00