aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorEmilia Dreamer <emilia@rymiel.space>2023-01-06 05:18:19 +0200
committerEmilia Dreamer <emilia@rymiel.space>2023-01-06 05:18:28 +0200
commitd9899501576e7b3b8ec4a3f0f855a6bfe68cef88 (patch)
treea6a92fc6271d0d9fa286f3eb3fcb4761557903f6 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentb1eeec6177fafcc433d98c4f46f353b13c68aca0 (diff)
downloadllvm-d9899501576e7b3b8ec4a3f0f855a6bfe68cef88.zip
llvm-d9899501576e7b3b8ec4a3f0f855a6bfe68cef88.tar.gz
llvm-d9899501576e7b3b8ec4a3f0f855a6bfe68cef88.tar.bz2
[clang-format] Disallow decltype in the middle of constraints
If a function with a `requires` clause as a constraint has a decltype return type, such as `decltype(auto)`, the decltype was seen to be part of the constraint clause, rather than as part of the function declaration, causing it to be placed on the wrong line. This patch disallows decltype to be a part of these clauses Fixes https://github.com/llvm/llvm-project/issues/59578 Depends on D140339 Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay Differential Revision: https://reviews.llvm.org/D140312
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions