509 changes: 509 additions & 0 deletions clang/lib/Tooling/Syntax/Tokens.cpp

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions clang/unittests/Tooling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ target_link_libraries(ToolingTests
clangToolingInclusions
clangToolingRefactor
)


add_subdirectory(Syntax)
20 changes: 20 additions & 0 deletions clang/unittests/Tooling/Syntax/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Support
)

add_clang_unittest(TokensTest
TokensTest.cpp
)

target_link_libraries(TokensTest
PRIVATE
clangAST
clangBasic
clangFrontend
clangLex
clangSerialization
clangTooling
clangToolingSyntax
LLVMTestingSupport
)
654 changes: 654 additions & 0 deletions clang/unittests/Tooling/Syntax/TokensTest.cpp

Large diffs are not rendered by default.