]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3210] properly match header names with regex
authorAndrei Pavel <andrei@isc.org>
Fri, 1 Mar 2024 12:20:15 +0000 (14:20 +0200)
committerAndrei Pavel <andrei@isc.org>
Thu, 21 Mar 2024 16:30:04 +0000 (18:30 +0200)
.clang-format

index 4752408333ef7762771402d829259a4e12471c35..164beac539b4e932f4369ef01a7f2629c6ee2ba1 100644 (file)
@@ -53,13 +53,13 @@ IncludeCategories:
   - Regex:           '^<(asiodns|asiolink|cc|config|config_backend|cryptolink|database|dhcp|dhcpsrv|dhcp_ddns|dns|eval|exceptions|hooks|http|log|mysql|pgsql|process|stats|testutils|util|yang|admin|agent|d2|dhcp4|dhcp6|keactrl|lfc|netconf|perfdhcp|shell|limits)/'
     Priority:        1
     # C++ standard library headers
-  - Regex:           '^<[[:alnum:]]>$'
+  - Regex:           '^<[_[:alnum:]]+>$'
     Priority:        2
     # boost headers
   - Regex:           '^<boost/'
     Priority:        3
     # C headers
-  - Regex:           '^<[[:alnum:]].h>$'
+  - Regex:           '^<[/_[:alnum:]]+\.h>$'
     Priority:        4
     # everything else
   - Regex:           '.*'