[all-commits] [llvm/llvm-project] 3ce78f: [analyzer] Ignore annotations if func is inlined.
llvmbot via All-commits
all-commits at lists.llvm.org
Mon Dec 7 11:33:09 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3ce78f54edcfc881377a9e567715caf2f0be2abc
https://github.com/llvm/llvm-project/commit/3ce78f54edcfc881377a9e567715caf2f0be2abc
Author: Yu Shan <shanyu at google.com>
Date: 2020-12-07 (Mon, 07 Dec 2020)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/FuchsiaHandleChecker.cpp
M clang/test/Analysis/fuchsia_handle.cpp
Log Message:
-----------
[analyzer] Ignore annotations if func is inlined.
When we annotating a function header so that it could be used by other
TU, we also need to make sure the function is parsed correctly within
the same TU. So if we can find the function's implementation,
ignore the annotations, otherwise, false positive would occur.
Move the escape by value case to post call and do not escape the handle
if the function is inlined and we have analyzed the handle.
Differential Revision: https://reviews.llvm.org/D91902
More information about the All-commits
mailing list