| Issue |
53093
|
| Summary |
clang::Preprocessor::MacroState should not be private
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
TestingPlant
|
A `clang::Preprocessor::MacroState` object can be accessed through the public API using `preprocessor.macro_begin()->second`.
However, since `MacroState` is private, you can't use it in a type, which prevents you from writing the code shown below:
```cpp
void foo(const clang::Preprocessor::MacroState& state);
```
```cpp
const clang::Preprocessor::MacroState& state = preprocessor.macro_begin()->second;
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs