Skip to content

clang-format corrupts the code #17589

Closed
Closed
@llvmbot

Description

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/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions