diff options
| author | Marco Elver <elver@google.com> | 2022-01-20 19:36:16 +0100 |
|---|---|---|
| committer | Marco Elver <elver@google.com> | 2022-01-20 19:56:34 +0100 |
| commit | c65186c89f35b7b599c41183def666a2bde62ddd (patch) | |
| tree | 6175e0c072e3ed881b0e5da868fa20059f427e94 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
| parent | 2d031ec5e53f4e28ea5cc02b4cfdead98a9c0007 (diff) | |
| download | llvm-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/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions
