llvm-project/clang/unittests/Tooling
Richard Smith 2563984215 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: 306881
2017-06-30 20:57:39 +00:00
..
CMakeLists.txt Make CastExpr::getSubExprAsWritten look through implicit temporary under CK_ConstructorConversion 2017-06-27 08:19:09 +00:00
CastExprTest.cpp Make CastExpr::getSubExprAsWritten look through implicit temporary under CK_ConstructorConversion 2017-06-27 08:19:09 +00:00
CommentHandlerTest.cpp Remove 'Filename' parameter from BeginSourceFileAction. 2017-06-09 01:36:10 +00:00
CompilationDatabaseTest.cpp [Tooling] FixedCompilationDatabase should be able to strip positional 2017-06-29 10:43:44 +00:00
FixItTest.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
LookupTest.cpp Added braces to work around gcc warning in googletest: suggest explicit braces to avoid ambiguous 'else'. NFC. 2017-06-15 21:01:24 +00:00
QualTypeNamesTest.cpp [Tooling] Add optional argument to getFullyQualifiedName to prepend "::". 2016-06-29 22:38:59 +00:00
RecursiveASTVisitorTest.cpp Make sure TraverseInitListExpr visits InitListExpr exactly twice 2017-06-27 08:04:08 +00:00
RecursiveASTVisitorTestCallVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RecursiveASTVisitorTestExprVisitor.cpp Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture(). 2016-08-17 14:59:53 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RefactoringCallbacksTest.cpp Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks 2017-05-10 07:48:45 +00:00
RefactoringTest.cpp Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:57:39 +00:00
ReplacementTest.h clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
ReplacementsYamlTest.cpp [clang-tidy] Add check name to YAML export 2017-01-03 14:35:47 +00:00
RewriterTest.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
RewriterTestContext.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
TestVisitor.h Switch TestVisitor to Lang_C via -x c 2017-06-27 07:59:56 +00:00
ToolingTest.cpp Remove 'Filename' parameter from BeginSourceFileAction. 2017-06-09 01:36:10 +00:00