[all-commits] [llvm/llvm-project] ea5b1e: [clang][NFC] Refactor expected directives in C++ D...
Vlad Serebrennikov via All-commits
all-commits at lists.llvm.org
Thu Nov 30 09:16:50 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ea5b1ef016d020c37f903d6c7d4f623be975dab8
https://github.com/llvm/llvm-project/commit/ea5b1ef016d020c37f903d6c7d4f623be975dab8
Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: 2023-11-30 (Thu, 30 Nov 2023)
Changed paths:
M clang/test/CXX/drs/dr0xx.cpp
Log Message:
-----------
[clang][NFC] Refactor expected directives in C++ DRs 1-99 (#73879)
This patch converts (almost) every expected directive in `test/CXX/drs/dr0xx.cpp` into either `@-1` form (when directive immediately follow the line diagnostic is pointing out to), or `@#<marker>` form (when directive is placed away from the line diagnostic is pointing out to). It also converts directive to match exactly one diagnostic, as opposed to matching multiple. Error messages are expanded to exactly match compiler output. `#if __cplusplus` guarding directives are replaced with respective prefixes (e.g. `since-cxx17`).
All aforementioned changes serve a purpose of making it easier to reconstruct expected compiler output, which should also make it a bit easier to grasp the gist of those already non-trivial tests due to their nature of testing corner cases of the language.
More information about the All-commits
mailing list