diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-07-08 10:32:03 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-07-13 10:51:43 +0200 |
| commit | ac14858e85cfee06c1e19843b92d50e38bc969dd (patch) | |
| tree | aade0c471dbfbc2af4d9446d60efcbc800310b55 /src/corelib/text/qregexp.cpp | |
| parent | 8a0676d5f9b54bc3d291223c3e88e91043a81507 (diff) | |
configurejson2cmake: Use a context manager for file special handling
One can now write
with special_cased_file("base/dir", "foo.txt") as fh:
do_something(fh)
This makes the code of processJson a bit clearer, and it allows us to
easily add more files that support the special handling comments.
Change-Id: Ia25d0c0d48df1802c5e2123d05345a88b42a2981
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/text/qregexp.cpp')
0 files changed, 0 insertions, 0 deletions
