2013-09-30 21:59:21 +08:00
|
|
|
get_filename_component(ClangApplyReplacementsLocation
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../../clang-apply-replacements/include" REALPATH)
|
|
|
|
get_filename_component(CommonIncLocation
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../include" REALPATH)
|
|
|
|
include_directories(
|
|
|
|
${ClangApplyReplacementsLocation}
|
|
|
|
${CommonIncLocation}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_extra_unittest(ClangApplyReplacementsTests
|
[Clang-Tidy] Preserve Message, FileOffset, FilePath in Clang-Tidy YAML output
Summary:
To get properly integration Clang-Tidy with CLion IDE, next things were implemented:
* Preserve `Message`, `FileOffset`, `FilePath` in the clang-tidy output.
* Export all diagnostics, not just the ones with fixes
* Test-cases
Reviewers: alexfh, ilya-biryukov
Subscribers: mgorny, JDevlieghere, xazax.hun, cfe-commits
Tags: #clang-tools-extra
Patch by Vladimir Plyashkun!
Differential Revision: https://reviews.llvm.org/D35349
llvm-svn: 308015
2017-07-14 18:37:46 +08:00
|
|
|
ApplyReplacementsTest.cpp
|
2013-09-30 21:59:21 +08:00
|
|
|
ReformattingTest.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(ClangApplyReplacementsTests
|
|
|
|
clangApplyReplacements
|
2017-07-15 14:32:10 +08:00
|
|
|
clangBasic
|
2014-10-30 08:44:01 +08:00
|
|
|
clangToolingCore
|
2013-09-30 21:59:21 +08:00
|
|
|
)
|