You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using SSH remote, specify OS of remote machine: N/A
Bug Summary and Steps to Reproduce
Bug Summary: When using Format Document from the (right click) context menu, the active file is formatted when that file is listed in .clang-format-ignore.
Steps to reproduce:
Create test.cpp in root of project with contents of
#include <iostream>
int main(int argc, char *argv[])
{
int value = 5;
int x = 0;
return 0;
}
Create .clang-format file in root of project with contents of AlignConsecutiveAssignments: true
Create .clang-format-ignore file in the root of the project with the absolute path to test.cpp
Open test.cpp in editor, right click and select Format Document
Notice that file has been updated with the formatting specified in .clang-format
If you run clang-format -i test.cpp in the integrated kernel, the file's format is not updated.
Expected behavior: File should not be formatted
Configuration and Logs
I have no c_cpp_properties.json. Log diagnostics show the clang-format command as:
/Users/jeff/.vscode/extensions/ms-vscode.cpptools-1.22.11-darwin-arm64/bin/../LLVM/bin/clang-format -style=file -fallback-style=LLVM --Wno-error=unknown -assume-filename=/Users/jeff/Development/clang-format/test.cpp
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Environment
Bug Summary and Steps to Reproduce
Bug Summary: When using
Format Document
from the (right click) context menu, the active file is formatted when that file is listed in .clang-format-ignore.Steps to reproduce:
.clang-format
file in root of project with contents ofAlignConsecutiveAssignments: true
.clang-format-ignore
file in the root of the project with the absolute path totest.cpp
test.cpp
in editor, right click and selectFormat Document
.clang-format
If you run
clang-format -i test.cpp
in the integrated kernel, the file's format is not updated.Expected behavior: File should not be formatted
Configuration and Logs
I have no c_cpp_properties.json. Log diagnostics show the clang-format command as: /Users/jeff/.vscode/extensions/ms-vscode.cpptools-1.22.11-darwin-arm64/bin/../LLVM/bin/clang-format -style=file -fallback-style=LLVM --Wno-error=unknown -assume-filename=/Users/jeff/Development/clang-format/test.cpp
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: