This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Disable implicit search for a compilation db in some tests
ClosedPublic

Authored by bogner on Aug 17 2023, 1:31 AM.

Details

Summary

These tests were failing for me on windows with a very curious error:

error: argument unused during compilation: '/Zc:preprocessor'

It turns out that they were walking up the directory structure and
finding the compilation DB in my top level llvm-project directory.

Add -- to the ends of the clang-tidy command lines so that they
don't go looking for random compilation databases. Also replace args
specified with -extra-arg with directly specifying them to the
FixedCompilationDatabase.

Diff Detail

Event Timeline

bogner created this revision.Aug 17 2023, 1:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2023, 1:31 AM
bogner requested review of this revision.Aug 17 2023, 1:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2023, 1:31 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Aug 17 2023, 5:26 AM