We need to support the following LIT fixers:
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/test/clang-tidy/checkers/abseil-time-comparison.cpp
// CHECK-MESSAGES: [[@LINE-1]]:7: warning: perform comparison in the time domain [abseil-time-comparison]
// CHECK-FIXES: absl::FromUnixSeconds(x) <= t1;
We need to:
- Support this logic in a fix and warn plugin
- To do this we need to generate tmp
Expected test resource
- Compare files and check results
This should be done under inlineFixer = true option
Keep in mind, that in warn plugin you already have the list with warnings matched to lines, may be it could help you
We need to support the following LIT fixers:
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/test/clang-tidy/checkers/abseil-time-comparison.cpp
We need to:
Expectedtest resourceThis should be done under
inlineFixer = trueoptionKeep in mind, that in warn plugin you already have the list with warnings matched to lines, may be it could help you