Update prebuilt Clang to r416183b from Android.
https://android.googlesource.com/platform/prebuilts/clang/host/
linux-x86/+/06a71ddac05c22edb2d10b590e1769b3f8619bef
clang 12.0.5 (based on r416183b) from build 7284624.
Change-Id: I277a316abcf47307562d8b748b84870f31a72866
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/linux-x64/clang/bin/git-clang-format b/linux-x64/clang/bin/git-clang-format
index ef7f22d..ccd2f50 100755
--- a/linux-x64/clang/bin/git-clang-format
+++ b/linux-x64/clang/bin/git-clang-format
@@ -45,7 +45,7 @@
The following git-config settings set the default of the corresponding option:
clangFormat.binary
clangFormat.commit
- clangFormat.extension
+ clangFormat.extensions
clangFormat.style
'''
@@ -77,13 +77,14 @@
'c', 'h', # C
'm', # ObjC
'mm', # ObjC++
- 'cc', 'cp', 'cpp', 'c++', 'cxx', 'hpp', 'hxx', # C++
- 'cu', # CUDA
+ 'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', # C++
+ 'cu', 'cuh', # CUDA
# Other languages that clang-format supports
'proto', 'protodevel', # Protocol Buffers
'java', # Java
'js', # JavaScript
'ts', # TypeScript
+ 'cs', # C Sharp
])
p = argparse.ArgumentParser(
@@ -147,7 +148,8 @@
for filename in changed_lines:
print(' %s' % filename)
if not changed_lines:
- print('no modified files to format')
+ if opts.verbose >= 0:
+ print('no modified files to format')
return
# The computed diff outputs absolute paths, so we must cd before accessing
# those files.
@@ -191,7 +193,12 @@
out = {}
for entry in run('git', 'config', '--list', '--null').split('\0'):
if entry:
- name, value = entry.split('\n', 1)
+ if '\n' in entry:
+ name, value = entry.split('\n', 1)
+ else:
+ # A setting with no '=' ('\n' with --null) is implicitly 'true'
+ name = entry
+ value = 'true'
if name in non_string_options:
value = run('git', 'config', non_string_options[name], name)
out[name] = value