--- description: "Learn more about: auto_rename import attribute" title: "auto_rename import attribute" ms.date: "08/29/2019" f1_keywords: ["auto_rename"] helpviewer_keywords: ["auto_rename attribute"] ms.assetid: 1075f3ab-f6fc-4e04-8e22-ebe02695a567 --- # auto_rename import attribute **C++ Specific** Renames C++ reserved words by appending two underscores (__) to the variable name to resolve potential name conflicts. ## Syntax > **#import** *type-library* **auto_rename** ## Remarks This attribute is used when importing a type library that uses one or more C++ reserved words (keywords or macros) as variable names. **END C++ Specific** ## See also [#import attributes](../preprocessor/hash-import-attributes-cpp.md)\ [#import directive](../preprocessor/hash-import-directive-cpp.md)