SuccessChanges

Summary

  1. Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace. (details)
  2. Rename AnalysisManager::slice in AnalysisManager::nest (NFC) (details)
  3. [test] Pin some RUNs in potential.ll to legacy PM (details)
Commit 0e00a95b4fad5e72851de012d3a0b2c2d01f8685 by richard
Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace.

For example:

    #define FOO(x) (x)
    FOO({});

... forms a statement-expression after macro expansion. This warning
applies to '({' and '})' delimiting statement-expressions, '[[' and ']]'
delimiting attributes, and '::*' introducing a pointer-to-member.

The warning for forming these compound tokens across macro expansions
(or across files!) is enabled by default; the warning for whitespace
within the tokens is not, but is included in -Wall.

Differential Revision: https://reviews.llvm.org/D86751
The file was modifiedclang/include/clang/Basic/DiagnosticParseKinds.td (diff)
The file was addedclang/test/Parser/compound-token-split.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td (diff)
The file was modifiedclang/test/Misc/warning-wall.c (diff)
The file was modifiedclang/include/clang/Parse/Parser.h (diff)
The file was modifiedclang/lib/Parse/Parser.cpp (diff)
The file was modifiedclang/lib/Parse/ParseStmt.cpp (diff)
The file was modifiedclang/lib/Parse/ParseDecl.cpp (diff)
The file was modifiedclang/lib/Parse/ParseExpr.cpp (diff)
The file was modifiedclang/lib/Parse/ParseDeclCXX.cpp (diff)
The file was modifiedclang/lib/Headers/altivec.h (diff)
Commit c39c21610d8be55209951531a7d0cc022aa4d8c1 by joker.eph
Rename AnalysisManager::slice in AnalysisManager::nest (NFC)

The naming wasn't reflecting the intent of this API, "nest" is aligning
it with the pass manager API.
The file was modifiedmlir/unittests/Pass/AnalysisManagerTest.cpp (diff)
The file was modifiedmlir/include/mlir/Pass/AnalysisManager.h (diff)
The file was modifiedmlir/lib/Pass/Pass.cpp (diff)
Commit 56fbd66e9f9fd75a892af40073dee60858b3c5d4 by aeubanks
[test] Pin some RUNs in potential.ll to legacy PM

There are corresponding NPM RUNs.
The file was modifiedllvm/test/Transforms/Attributor/potential.ll (diff)