-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to current shecc's implementation, modern editors with common lsp such as VSCode with C/C++ plugin is unable to properly analyze from main.c, even though the code is correct. Thus we adds some system header inclusion in certain files to resolve and suppress error message. Notice that due to current frontend's limitation, including defs.h in C source files other than main.c would result weird error, thus this is not introduced in this commit. In addition, it's annoying that VSCode always generate .vscode folder with some plugin-specific setting config files. Therefore, we also ignore it to prevent accidentally adding the config file to stage.
- Loading branch information
1 parent
9208d7d
commit 09bb918
Showing
4 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ a.out | |
config | ||
src/codegen.c | ||
.session.mk | ||
|
||
# vscode C/C++ plugin generated files | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters