summaryrefslogtreecommitdiff
path: root/tools/warn/cpp_warn_patterns.py
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2019-11-07 13:53:57 -0800
committer Dan Willemsen <dwillemsen@google.com> 2019-11-25 20:39:22 -0800
commitc9a657c907a10dab28cf3cecc79dcd4f6ee3f965 (patch)
tree62f897eb2c318c818f0075fff7fa9dc4bfc9b6b0 /tools/warn/cpp_warn_patterns.py
parent874a5aa95e885a6fab8332f68388e99a312bbc7f (diff)
Clean include directory paths
To remove '../' and other strangeness from compiler arguments, which run into problems with remote execution: Android.mk: LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/bar/.. foo.c: #include "foo.h" include/foo.h In this case, we'll send foo.c and include/foo.h, but include/bar may be empty, and not exist on the remote server. So while the file is there, you may not be able to access it. There's also a byproduct of removing extra '/' and './' components, which should be harmless. Fixes: 144109314 Test: diff build-aosp_arm.ninja before/after; scan diffs Test: treehugger Change-Id: Id2eceba76fbf9b1524487e82cb5c8903c815e45f
Diffstat (limited to 'tools/warn/cpp_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions