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

added new clang versions and cpp11 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cfg/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
Standard: Cpp03
Standard: Cpp11
TabWidth: 2
UseTab: Never
...
4 changes: 2 additions & 2 deletions src/file_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def complete_path(text, state):


def find_clang_format():
versions = ('4.0', '3.9', '3.8')
versions = ('6.0', '5.0', '4.0', '3.9', '3.8')
for v in versions:
candidate = 'clang-format-' + v
if os.system('which ' + candidate + ' > /dev/null') == 0:
Expand Down Expand Up @@ -71,7 +71,7 @@ def find_clang_format():
print
print "Supply the executable for your clang formater:"

user_input = raw_input("[clang-format-3.8]: ")
user_input = raw_input("[clang-format]: ")
clang = user_input if user_input != "" else "clang-format-3.8"

exec_policy = {'cpp': ' -name "*.h" -or -name "*.hpp" -or -name "*.cpp" | xargs ' + clang + ' -i -style=file', # CPP
Expand Down