aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseOpenMP.cpp
diff options
context:
space:
mode:
authorliuke <liuke.gehry@bytedance.com>2021-10-13 12:29:36 -0400
committerAaron Ballman <aaron@aaronballman.com>2021-10-13 12:31:02 -0400
commitea72b55b5c7c281cb21bb7bd50e6e039ca63dfe8 (patch)
tree027d9ee92ae7b1e9080d664eaf2bf842f15a6b7c /clang/lib/Parse/ParseOpenMP.cpp
parent24c90165742625272b72961405ae00ced356ec74 (diff)
downloadllvm-ea72b55b5c7c281cb21bb7bd50e6e039ca63dfe8.zip
llvm-ea72b55b5c7c281cb21bb7bd50e6e039ca63dfe8.tar.gz
llvm-ea72b55b5c7c281cb21bb7bd50e6e039ca63dfe8.tar.bz2
bugprone-argument-comment: SourceLocation valid judgment avoid emitting coredump in isInSystemHeader
If the Node has an invalid location, it will trigger assert in isInSystemHeader(...). void test() { __builtin_va_list __args; // __builtin_va_list has no defination in any source file and its // CXXConstructorDecl has invalid sourcelocation } coredump with "Assertion `Loc.isValid() && "Can't get file characteristic of invalid loc!"' failed." in getFileCharacteristic(SourceLocation).
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
0 files changed, 0 insertions, 0 deletions