Skip to content

clang-format v9.0.0 : error: unknown key 'AlignConsecutiveMacros' #66

@pramodk

Description

@pramodk

While using clan-format version 9.0.0:

→ /usr/local/Cellar/clang-format/2019-05-14/bin/clang-format --version
clang-format version 9.0.0 (tags/google/stable/2019-05-14)

I am getting following error:

Error reading /Users/kumbhar/workarena/repos/bbp/nn/.clang-format: Invalid argument
/usr/local/Cellar/clang-format/2019-05-14/bin/clang-format -i /Users/kumbhar/workarena/repos/bbp/nn/src/nrniv/../parallel/bbssrvmpi.cpp
YAML:5:25: error: unknown key 'AlignConsecutiveMacros'
AlignConsecutiveMacros: true
                        ^~~~
Error reading /Users/kumbhar/workarena/repos/bbp/nn/.clang-format: Invalid argument
/usr/local/Cellar/clang-format/2019-05-14/bin/clang-format -i /Users/kumbhar/workarena/repos/bbp/nn/src/nrniv/bgpmeminfo.c
YAML:5:25: error: unknown key 'AlignConsecutiveMacros'
AlignConsecutiveMacros: true
                        ^~~~
Error reading /Users/kumbhar/workarena/repos/bbp/nn/.clang-format: Invalid argument
/usr/local/Cellar/clang-format/2019-05-14/bin/clang-format -i /Users/kumbhar/workarena/repos/bbp/nn/src/nrniv/cachevec.cpp
YAML:5:25: error: unknown key 'AlignConsecutiveMacros'
AlignConsecutiveMacros: true

I believe this is because AlignConsecutiveMacros was merged after v9.0.0 release (?).

Metadata

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