hanchenye-llvm-project/clang/tools
Serge Guelton 3331b6eab3 [tools] Fix python DeprecationWarning: invalid escape sequence
The python documentation says "it’s highly recommended that you use raw strings for all but the simplest expressions." (https://docs.python.org/3/library/re.html)

So do that with the attached patch generated by

    sed -i -e "s/re.search('/re.search(r'/g" $(git grep -l 're.search(')

The warning can be seen in e.g. python3.7:

    $ python3.7 -Wd
    >>> import re; re.search('\s', '')
    <stdin>:1: DeprecationWarning: invalid escape sequence \s

Commited on behalf of Marco Falke.
Differential Revision: https://reviews.llvm.org/D57528

llvm-svn: 353707
2019-02-11 15:03:17 +00:00
..
arcmt-test Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
c-arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-index-test Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-check Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-diff Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-extdef-mapping Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-format [tools] Fix python DeprecationWarning: invalid escape sequence 2019-02-11 15:03:17 +00:00
clang-format-vs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
clang-fuzzer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-import-test Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-offload-bundler Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-refactor Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-rename Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
diag-build
diagtool Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
driver Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
libclang [libclang] Add attribute support for 'convergent'. 2019-02-11 11:00:56 +00:00
scan-build [tools] Fix python DeprecationWarning: invalid escape sequence 2019-02-11 15:03:17 +00:00
scan-build-py [tools] Fix python DeprecationWarning: invalid escape sequence 2019-02-11 15:03:17 +00:00
scan-view Portable Python script across Python version 2019-01-03 14:26:56 +00:00
CMakeLists.txt [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00