You can set the default for classifiers to show parent names when you add classifiers to a class diagram or create new class diagrams.
Parent topic: Customizing C/C++ UML visual development default settings
Related concepts
Attributes
Operations
Visibility
Related tasks
Changing the default for showing attribute and operation compartments
Changing the default visibility style for attributes and operations
Changing the default visibility style for C/C++ stereotypes
Changing the default for extracting C/C++ visualization elements
Changing the default for C/C++ visualization related elements