Comments (4)
@jdlugosz
Hello.
I need more information to understand what issue is.
I'm confused now.
Please describe with code samples and your suggestion about it.
from vscode-cpp-helper.
Names containing two consecutive underscores, or beginning with an underscore followed by a capital letter, are reserved for use by the implementation.
In short, it is exactly wrong to imitate the guards you see in the standard library files.
Your sample animation shows the example of __TEST_H__
which is a reserved name. For all you know, some standard header defines a macro by that name for its own use, or worse.
from vscode-cpp-helper.
@jdlugosz
You can change default config to remove underscores from header guards like this.
"CppHelper.HeaderGuardPattern": "{FILE}_H"
or
"CppHelper.HeaderGuardPattern": "GUARD_{FILE}_H"
from vscode-cpp-helper.
But the default shouldn't use reserved names.
from vscode-cpp-helper.
Related Issues (20)
- CppHelper.SourcePattern is very constraining for non-"all in one folder" source layouts HOT 5
- Extension issue
- Create Implementation leaves trailing space on signature of implementation HOT 1
- "Create Implementation" fails when header file contains comments HOT 2
- [Feature Request] Move Implementation to Source File
- Creating an implementation sometimes breaks the C++ language server? HOT 3
- Multi-line can not implement the function, I don't know if it is my operation problem HOT 2
- The extension fails to find the source file when it's not in "an obvious location". HOT 2
- Bug of creating implementation of the very first function of a header file HOT 1
- often get stuck HOT 2
- Implementations of multiple methods HOT 2
- [Feature Request] Adding `<class_name>::` in Front of the Generated Implementation
- namespace Scop Wrongly Parsed [bug]
- Creating source: file location (.) and extension (cpp) not configurable
- Minor issue with generated implementation for pure virtual functions
- Generate Header Guard: Sanitize File Name
- Class member function implementation generator doesn't work if there're comments
- Is Create Header Guard broken after last VSCode update? HOT 2
- Add ability to disable the update notification
- Nothing of C++ Helper works anymore after calling "Create Implementation" with a special constructor in your class HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cpp-helper.