[PATCH] D59734: [clang-tidy] Handle missing yaml module in run-clang-tidy.py

serge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 25 05:08:33 PDT 2019


serge-sans-paille added inline comments.


================
Comment at: clang-tidy/tool/run-clang-tidy.py:51
+
+yaml_imported = True
+try:
----------------
Could be

```
try:
    import yaml
except ImportError:
    yaml = None
```

and later

```
if yaml:
    ...
```


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59734/new/

https://reviews.llvm.org/D59734





More information about the cfe-commits mailing list