aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2022-01-20 19:36:16 +0100
committerMarco Elver <elver@google.com>2022-01-20 19:56:34 +0100
commitc65186c89f35b7b599c41183def666a2bde62ddd (patch)
tree6175e0c072e3ed881b0e5da868fa20059f427e94 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent2d031ec5e53f4e28ea5cc02b4cfdead98a9c0007 (diff)
downloadllvm-c65186c89f35b7b599c41183def666a2bde62ddd.zip
llvm-c65186c89f35b7b599c41183def666a2bde62ddd.tar.gz
llvm-c65186c89f35b7b599c41183def666a2bde62ddd.tar.bz2
[clang] Improve -Wdeclaration-after-statement
With 118f966b46cf, Clang matches GCC's behaviour and allows enabling -Wdeclaration-after-statement with C99 and later. However, the check for mixing declarations and code is not a constant time algorithm, and therefore should be guarded with Diags.isIgnored(). Furthermore, improve test coverage with: non-pedantic C89 with the warning; C11 with the warning; and when using -Wall. Finally, mention the changed behaviour in ReleaseNotes.rst. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D117232
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions