This is an archive of the discontinued LLVM Phabricator instance.

[LibTooling] Address post-commit feedback for r361152
ClosedPublic

Authored by ymandel on May 21 2019, 8:03 AM.

Diff Detail

Repository
rC Clang

Event Timeline

ymandel created this revision.May 21 2019, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2019, 8:03 AM
Herald added a subscriber: mgorny. · View Herald Transcript
thakis accepted this revision.May 21 2019, 11:31 AM

Thanks! Maybe say "address post-commit feedback for rXXXX" in the description. (But as-is is fine too.)

This revision is now accepted and ready to land.May 21 2019, 11:31 AM
ymandel retitled this revision from [LibTooling] Adjust dependencies for unittests. to [LibTooling] Address post-commit feedback for r361152.May 21 2019, 11:43 AM
ymandel edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.
sbc100 added a subscriber: sbc100.May 23 2019, 7:44 AM

I think this build broke the -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON build. e.g https://ci.chromium.org/p/wasm/builders/ci/linux/6457

FAILED: tools/clang/unittests/Tooling/ToolingTests 
: && /b/swarming/w/ir/cache/builder/src/src/work/v8/v8/third_party/llvm-build/Release+Asserts/bin/clang++   -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3  -Wl,-allow-shlib-undefined    -Wl,-O3 -Wl,--gc-sections tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/ASTSelectionTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/CastExprTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/CommentHandlerTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/CompilationDatabaseTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/DiagnosticsYamlTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/ExecutionTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/FixItTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/HeaderIncludesTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/LexicallyOrderedRecursiveASTVisitorTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/LookupTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/QualTypeNamesTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RangeSelectorTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/Attr.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/Class.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/ConstructExpr.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/CXXBoolLiteralExpr.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/CXXMemberCall.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/CXXOperatorCallExprTraverser.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/DeclRefExpr.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/ImplicitCtor.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/InitListExprPostOrder.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/InitListExprPostOrderNoQueue.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/InitListExprPreOrder.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/InitListExprPreOrderNoQueue.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/IntegerLiteral.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/LambdaDefaultCapture.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/LambdaExpr.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/NestedNameSpecifiers.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/ParenExpr.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/TemplateArgumentLocTraverser.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTests/TraversalScope.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTestDeclVisitor.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTestPostOrderVisitor.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RecursiveASTVisitorTestTypeLocVisitor.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RefactoringActionRulesTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RefactoringCallbacksTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RefactoringTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/ReplacementsYamlTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RewriterTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/SourceCodeTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/StencilTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/ToolingTest.cpp.o tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/TransformerTest.cpp.o  -o tools/clang/unittests/Tooling/ToolingTests  -Wl,-rpath,/b/swarming/w/ir/cache/builder/src/src/work/llvm-out/lib -lpthread lib/libgtest_main.a lib/libgtest.a -lpthread lib/libclangAST.a lib/libclangASTMatchers.a lib/libclangBasic.a lib/libclangFormat.a lib/libclangFrontend.a lib/libclangLex.a lib/libclangRewrite.a lib/libclangSerialization.a lib/libclangTooling.a lib/libclangToolingCore.a lib/libclangToolingInclusions.a lib/libclangToolingRefactor.a -lpthread lib/libclangIndex.a lib/libclangFormat.a lib/libclangToolingInclusions.a lib/libclangFrontend.a lib/libclangDriver.a lib/libclangParse.a lib/libclangSerialization.a lib/libclangSema.a lib/libclangEdit.a lib/libclangAnalysis.a lib/libclangASTMatchers.a lib/libclangToolingCore.a lib/libclangAST.a lib/libclangRewrite.a lib/libclangLex.a lib/libclangBasic.a lib/libLLVM-9svn.so && :
tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RangeSelectorTest.cpp.o: In function `(anonymous namespace)::RangeSelectorTest_UnboundNode_Test::TestBody()':
RangeSelectorTest.cpp:(.text._ZN12_GLOBAL__N_134RangeSelectorTest_UnboundNode_Test8TestBodyEv+0x130): undefined reference to `llvm::detail::TakeError(llvm::Error)'
tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RangeSelectorTest.cpp.o: In function `(anonymous namespace)::RangeSelectorTest_RangeOp_Test::TestBody()':
RangeSelectorTest.cpp:(.text._ZN12_GLOBAL__N_130RangeSelectorTest_RangeOp_Test8TestBodyEv+0x53d): undefined reference to `llvm::detail::TakeError(llvm::Error)'
RangeSelectorTest.cpp:(.text._ZN12_GLOBAL__N_130RangeSelectorTest_RangeOp_Test8TestBodyEv+0x7f5): undefined reference to `llvm::detail::TakeError(llvm::Error)'
tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RangeSelectorTest.cpp.o: In function `(anonymous namespace)::RangeSelectorTest_NodeOpStatement_Test::TestBody()':
RangeSelectorTest.cpp:(.text._ZN12_GLOBAL__N_138RangeSelectorTest_NodeOpStatement_Test8TestBodyEv+0x132): undefined reference to `llvm::detail::TakeError(llvm::Error)'
tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RangeSelectorTest.cpp.o: In function `(anonymous namespace)::RangeSelectorTest_NodeOpExpression_Test::TestBody()':
RangeSelectorTest.cpp:(.text._ZN12_GLOBAL__N_139RangeSelectorTest_NodeOpExpression_Test8TestBodyEv+0x132): undefined reference to `llvm::detail::TakeError(llvm::Error)'
tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RangeSelectorTest.cpp.o:RangeSelectorTest.cpp:(.text._ZN12_GLOBAL__N_134RangeSelectorTest_StatementOp_Test8TestBodyEv+0x132): more undefined references to `llvm::detail::TakeError(llvm::Error)' follow