aboutsummaryrefslogtreecommitdiffstats
path: root/.cmake_has_regex_test.cpp
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2018-01-03 06:44:44 -0800
committerSergio Martins <iamsergio@gmail.com>2018-01-03 06:51:29 -0800
commit427ad7689ac65bc4106c0a420c1165cc57f1eef7 (patch)
treef3ede02a01702f43a7f954ba1caedd388148fb9a /.cmake_has_regex_test.cpp
parentd565fdb04882bcf827b6b594dc85feadf6d056e7 (diff)
Add option to build clazy into libclang
To use when building clang. Will make it easier for QtCreator update clazy. REVIEW: D9598
Diffstat (limited to '.cmake_has_regex_test.cpp')
-rw-r--r--.cmake_has_regex_test.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/.cmake_has_regex_test.cpp b/.cmake_has_regex_test.cpp
new file mode 100644
index 00000000..b0e20e73
--- /dev/null
+++ b/.cmake_has_regex_test.cpp
@@ -0,0 +1,28 @@
+/*
+ This file is part of the clazy static checker.
+
+ Copyright (C) 2015 Sergio Martins <smartins@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include <regex>
+
+int main()
+{
+ std::regex r(R"(\s*(SIGNAL|SLOT)\s*\(\s*(.+)\s*\(.*)");
+ return 0;
+}