Skip to content
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

clang-format corrupts the code #17589

Closed
llvmbot opened this issue Sep 12, 2013 · 1 comment
Closed

clang-format corrupts the code #17589

llvmbot opened this issue Sep 12, 2013 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang-format

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 12, 2013

Bugzilla Link 17215
Resolution FIXED
Resolved on Oct 11, 2013 14:46
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

I ran clang-format -style=Google on my code base and:

#define VER_QUALIFIER \x20(dbg)

got changed to:

#define VER_QUALIFIER x20(dbg)

The reason \x20 is there is because I need to ## stringize this later to get a space character, with ascii code 32 i.e. 0x20.

Truth be told, I don't know if it is strictly valid C++ but it does work as expected under msvc (2008, 2010, 2012).

This is on Windows, using SVN r190317 downloaded from http://llvm.org/builds/

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 11, 2013

Fixed in r192490.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang-format
Projects
None yet
Development

No branches or pull requests

1 participant