diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2022-11-03 08:27:56 -0400 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2022-11-03 08:29:59 -0400 |
| commit | b8ceb9f4e4bdb69b5c3ea1ccf8505fa244ca0a1e (patch) | |
| tree | 2f20f2a96b615a47fb8ba05d38dce44ab399340c /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
| parent | 3ee1882299f9f7d62c10093fa968f0b16669df0c (diff) | |
| download | llvm-b8ceb9f4e4bdb69b5c3ea1ccf8505fa244ca0a1e.zip llvm-b8ceb9f4e4bdb69b5c3ea1ccf8505fa244ca0a1e.tar.gz llvm-b8ceb9f4e4bdb69b5c3ea1ccf8505fa244ca0a1e.tar.bz2 | |
[C++20] Diagnose invalid and reserved module names
[module.unit]p1 specifies that module and import are invalid components
of a module name, that module names cannot contain reserved
identifiers, and that std followed by zero or more digits is reserved.
The first issue (module and import pseudo-keywords) requires a
diagnostic, the second issue (use of reserved identifiers) does not
require a diagnostic. We diagnose both the same -- the code is ill-
formed unless the module declaration is in a system "header". This
allows STL implementations to use the reserved module names while
preventing users from stealing them out from under us.
Differential Revision: https://reviews.llvm.org/D136953
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions
