-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fomat Macro whith @ #12913
Labels
Feature: Code Formatting
Language Service
more info needed
The issue report is not actionable in its current state
Comments
@luyuduan I don't repro the issue. Can you provide a .clang-format file the repros the issue? |
sean-mcmanus
added
Language Service
more info needed
The issue report is not actionable in its current state
Feature: Code Formatting
labels
Nov 2, 2024
@sean-mcmanus Here's my .clang-format file.. Github does not seem to support uploading files with this suffix directly. Paste the following directly
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature: Code Formatting
Language Service
more info needed
The issue report is not actionable in its current state
Environment
Ubuntu 24.04
Bug Summary and Steps to Reproduce
Bug Summary:
fomat failed. The reason for the final positioning failure is the Macro with '@' symbol
Steps to reproduce:
just fomat one header file
Expected behavior:
format done,but the whole file format failed
Configuration and Logs
c_cpp_properties.json
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/build/compile/inc/**",
"${workspaceFolder}/code/shell/inc"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
Other Extensions
No response
Additional context
code:
`#define ABC(var) @"xx"
int i = 3;`
OUTPUT Window show:
Format failed :
/home/lys/.vscode-server/extensions/ms-vscode.cpptools-1.23.0-linux-x64/bin/../LLVM/bin/clang-format --style=file:/home/lys/test/samba_share/code/.clang-format --fallback-style=LLVM --sort-includes=0 --Wno-error=unknown --offset=0 --length=25 --assume-filename=/home/lys/test/samba_share/code/shell/inc/xx.h /home/lys/test/samba_share/code/shell/inc/xx.h
Error reading /home/lys/test/samba_share/code/.clang-format: Unsuitable
The clang-format file is no problem , and other code is formatted normally.
The text was updated successfully, but these errors were encountered: