mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 14:25:48 +01:00
Bump clang-tidy from 11 to 14 (#5160)
This commit is contained in:
.clang-tidy
.github/workflows
esphome/components
logger
matrix_keypad
remote_base
ssd1322_spi
ssd1325_spi
ssd1327_spi
ssd1331_spi
ssd1351_spi
tlc5947
vbus
voice_assistant
wifi
script
@ -113,7 +113,7 @@ def clang_options(idedata):
|
||||
def run_tidy(args, options, tmpdir, queue, lock, failed_files):
|
||||
while True:
|
||||
path = queue.get()
|
||||
invocation = ["clang-tidy-11"]
|
||||
invocation = ["clang-tidy-14"]
|
||||
|
||||
if tmpdir is not None:
|
||||
invocation.append("--export-fixes")
|
||||
@ -194,14 +194,14 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
get_output("clang-tidy-11", "-version")
|
||||
get_output("clang-tidy-14", "-version")
|
||||
except:
|
||||
print(
|
||||
"""
|
||||
Oops. It looks like clang-tidy-11 is not installed.
|
||||
Oops. It looks like clang-tidy-14 is not installed.
|
||||
|
||||
Please check you can run "clang-tidy-11 -version" in your terminal and install
|
||||
clang-tidy (v11) if necessary.
|
||||
Please check you can run "clang-tidy-14 -version" in your terminal and install
|
||||
clang-tidy (v14) if necessary.
|
||||
|
||||
Note you can also upload your code as a pull request on GitHub and see the CI check
|
||||
output to apply clang-tidy.
|
||||
@ -272,7 +272,7 @@ def main():
|
||||
if args.fix and failed_files:
|
||||
print("Applying fixes ...")
|
||||
try:
|
||||
subprocess.call(["clang-apply-replacements-11", tmpdir])
|
||||
subprocess.call(["clang-apply-replacements-14", tmpdir])
|
||||
except:
|
||||
print("Error applying fixes.\n", file=sys.stderr)
|
||||
raise
|
||||
|
Reference in New Issue
Block a user