diff options
author | iaz1607 <iaz1607@yandex-team.com> | 2023-11-30 12:16:39 +0300 |
---|---|---|
committer | iaz1607 <iaz1607@yandex-team.com> | 2023-11-30 12:56:46 +0300 |
commit | 8951ddf780e02616cdb2ec54a02bc354e8507c0f (patch) | |
tree | 478097488957d3b554e25868c972a959bb40d78e /build/scripts/clang_tidy.py | |
parent | a5acb7aa4ca5a4603215e878eb0cad786793262b (diff) | |
download | ydb-8951ddf780e02616cdb2ec54a02bc354e8507c0f.tar.gz |
`build/scripts` ya style --py
Diffstat (limited to 'build/scripts/clang_tidy.py')
-rw-r--r-- | build/scripts/clang_tidy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/scripts/clang_tidy.py b/build/scripts/clang_tidy.py index 05c3ac33ca..e93b35774b 100644 --- a/build/scripts/clang_tidy.py +++ b/build/scripts/clang_tidy.py @@ -113,20 +113,20 @@ def find_header(p, h): raise Exception('can not find inc dir') -def fix_cmd(l, bin): +def fix_cmd(cmd, bin): sp = '--sysroot=' - for x in l: + for x in cmd: if '-isystem' in x and '/share/include' in x: # reparent compiler headers dir into clang-tidy install path yield '-isystem' + find_header(os.path.dirname(os.path.dirname(bin)), 'stddef.h') elif x.startswith(sp): yield '-nostdinc' - sr = x[len(sp):] + sr = x[len(sp) :] yield '-isystem' + sr + '/usr/include' yield '-isystem' + sr + '/usr/include/x86_64-linux-gnu' elif x == '-nostdinc++': - if '.c.o' in str(l): + if '.c.o' in str(cmd): pass else: yield x |