diff options
author | liuke <liuke.gehry@bytedance.com> | 2021-10-13 12:29:36 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2021-10-13 12:31:02 -0400 |
commit | ea72b55b5c7c281cb21bb7bd50e6e039ca63dfe8 (patch) | |
tree | 027d9ee92ae7b1e9080d664eaf2bf842f15a6b7c /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 24c90165742625272b72961405ae00ced356ec74 (diff) | |
download | llvm-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