-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-tidy] Fix crash in --dump-config
Fixes a crash in dump-config when checks emit warnings trying to read the config Fixes #50876 Co-authored-by: Piotr Zegar <me@piotrzegar.pl> Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D148436
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
clang-tools-extra/test/clang-tidy/infrastructure/dump-config-invalid.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// RUN: clang-tidy --checks="-*,modernize-make-shared" \ | ||
// RUN: --config="CheckOptions: [{ \ | ||
// RUN: key: modernize-make-shared.IncludeStyle, value: '0' }]" \ | ||
// RUN: --dump-config -- | FileCheck %s | ||
|
||
// CHECK: modernize-make-shared.IncludeStyle: llvm |