Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang-tidy altera-id-dependent-backward-branch: print notes after war…
…ning In Clang notes are typically printed after a corresponding warning, not before. For example, all notes issued before the first warning are ignored. Running `clang-tidy --checks=-*,altera-id-dependent-backward-branch a.cpp` on the following code: ``` long get_local_id(int); void error() { int ThreadID = get_local_id(0); for (int i = 0; i < ThreadID; i++) { } for (int i = 0; i < ThreadID; i++) { } } ``` results in two warnings and a single note in between. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D145303
- Loading branch information
1 parent
bbda411
commit c6d195b
Showing
2 changed files
with
14 additions
and
15 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