Added keyword "module" conflicting with variable in generated file

Hi all,

Where does llvm-tblgen get its sources for generated files? Specifically “class OwnershipAttr” in /tools/clang/include/clang/AST/

We are adding the keyword “module” and this class has a private variable named module that I can’t find and causes compilation errors.


All Tablegen sources come from .td files; the attributes are in (Not sure why there’s no ‘s’ in the file name…). Because it’s autogenerated, though, you might have trouble just renaming the variable. On the other hand, AFAIK no one is using those attributes right now except an experimental alpha checker in the static analyzer, and even that isn’t hooked up to do anything with the “module” field in the attribute, so just removing it probably won’t hurt your private fork.