Added keyword "module" conflicting with variable in generated file Attrs.inc

Hi all,

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

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

-Thanks,
-Jeff

All Tablegen sources come from .td files; the attributes are in Attr.td. (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.

Jordan