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

Make style lookup consistent with clang-format #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 9, 2015

  1. Make style lookup consistent with clang-format

    The current version was using -style=file option only,
    causing failure if pwd != file's directory.
    2 kinds of failures occur:
    - If no .clang-format is present in PWD, and one is
    present in the file's directory, then clang-format
    fails for lack of style file, and dump its error message
    directly into the buffer
    - If a .clang-format is present in PWD, and one is present
    in the file's directory, then the wrong .clang-format from PWD is used
    
    This commit makes the behavior fully consistent with clang-format:
    - lookup .clang_format in the file's directory and recursively go up
    its parent directory until found. If no style file is found, defaults
    to g:clang_format#style_options
    arntanguy committed Oct 9, 2015
    Configuration menu
    Copy the full SHA
    47a10a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2016

  1. Configuration menu
    Copy the full SHA
    284f6ef View commit details
    Browse the repository at this point in the history