summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-20 20:28:56 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-21 13:55:02 +0300
commite390f9f618ec694e5327ebe93cdfc0ba89ab5a86 (patch)
treea9d7e586af86304a722f1d66f255ec631f0d5a03 /utils
parentbeed258a5a3f6a690c6774d37815527fe60375eb (diff)
Documentation: Adjust guidelines regarding math.h header
While libcamera prefers usage of the C standard library headers (xxx.h) over the C++ version (cxxx), we make an exception for cmath as the overloaded versions of the math functions are convenient. Document this, and adjust checkstyle.py accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/checkstyle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index b594a19a..d5dc26c0 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -244,9 +244,9 @@ class IncludeChecker(StyleChecker):
patterns = ('*.cpp', '*.h')
headers = ('assert', 'ctype', 'errno', 'fenv', 'float', 'inttypes',
- 'limits', 'locale', 'math', 'setjmp', 'signal', 'stdarg',
- 'stddef', 'stdint', 'stdio', 'stdlib', 'string', 'time', 'uchar',
- 'wchar', 'wctype')
+ 'limits', 'locale', 'setjmp', 'signal', 'stdarg', 'stddef',
+ 'stdint', 'stdio', 'stdlib', 'string', 'time', 'uchar', 'wchar',
+ 'wctype')
include_regex = re.compile('^#include <c([a-z]*)>')
def __init__(self, content):