Go to file
Matthias Gehre 41a83a7d2b [clang-tidy] fix for NOLINT after macro expansion
Summary:
When having
``` c++
    #define MACRO code-with-warning
    MACRO; // NOLINT
```
clang-tidy would still show the warning, because
it searched for "NOLINT" only in the first line,
not on the second.
This caused e.g. https://llvm.org/bugs/show_bug.cgi?id=29089
(where the macro was defined in a system header). See also
the added test cases.
Now clang-tidy looks at the line of macro invocation and every line
of macro definition for a NOLINT comment.

Reviewers: alexfh, aaron.ballman, hokein

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D24845

llvm-svn: 282330
2016-09-24 16:06:53 +00:00
clang Remove excessive padding from RedeclarableResult 2016-09-24 04:21:53 +00:00
clang-tools-extra [clang-tidy] fix for NOLINT after macro expansion 2016-09-24 16:06:53 +00:00
compiler-rt [msan] Disable flaky fork.cc on PPC64. 2016-09-23 23:41:44 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx [libc++] Remove math_win32.h 2016-09-24 06:27:28 +00:00
libcxxabi annotate more function visibility 2016-09-23 21:36:24 +00:00
libunwind Add missing _US_ACTION_MASK constant to unwind.h 2016-09-05 18:01:13 +00:00
lld Combine two StringSwitch::Cases because Cases now can take 6 parameters. 2016-09-23 22:22:34 +00:00
lldb [CMake] Generate LLDB_REVISION at build time 2016-09-23 23:33:52 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [AVR] Update signature of AVRTargetObjectFile::SelectSectionForGlobal 2016-09-24 11:38:08 +00:00
openmp Fix respecting LIBOMP_LLVM_LIT_EXECUTABLE as full path 2016-09-19 06:55:56 +00:00
parallel-libs [SE] Fix config bug with CUDA tests 2016-09-15 20:26:28 +00:00
polly [ScopDetection] Remove redundant checks for endless loops 2016-09-20 17:05:22 +00:00