aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorisuckatcs <65320245+isuckatcs@users.noreply.github.com>2022-08-25 15:11:53 +0200
committerisuckatcs <65320245+isuckatcs@users.noreply.github.com>2022-08-30 20:27:38 +0200
commitcd40245f549b8bd7a5b6571c2eb6a882ce59acc9 (patch)
tree80c5f4d35e6f6cb623c182939a018f33c700b727 /clang/lib/Lex/ModuleMap.cpp
parent16e96a7e606e87115fd8a15786641bfec60b4363 (diff)
downloadllvm-cd40245f549b8bd7a5b6571c2eb6a882ce59acc9.zip
llvm-cd40245f549b8bd7a5b6571c2eb6a882ce59acc9.tar.gz
llvm-cd40245f549b8bd7a5b6571c2eb6a882ce59acc9.tar.bz2
[clang-tidy] Fix false positive on ArrayInitIndexExpr inside ProBoundsConstantArrayIndexCheck
Sometimes in the AST we can have an ArraySubscriptExpr, where the index is an ArrayInitIndexExpr. ArrayInitIndexExpr is not a constant, so ProBoundsConstantArrayIndexCheck reports a warning when it sees such expression. This expression can only be implicitly generated, and always appears inside an ArrayInitLoopExpr, so we shouldn't report a warning. Differential Revision: https://reviews.llvm.org/D132654
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions