[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / warn-unsafe-buffer-usage-pragma.h
blob1d5cb45d3b918b99d93bce0b282fbea4cab59761
1 #ifdef _INCLUDE_NO_WARN
2 // the snippet will be included in an opt-out region
3 p1++;
5 #undef _INCLUDE_NO_WARN
7 #elif defined(_INCLUDE_WARN)
8 // the snippet will be included in a location where warnings are expected
9 p2++; // expected-note{{used in pointer arithmetic here}}
10 #undef _INCLUDE_WARN
12 #else
14 #endif