more small *.py cleanups (#1329)
* added CLion project folder to .gitignore * adjusted project name in CMakeLists.txt * avoid warning when compiling "Debug" with Visual Studio via CMake There was a GCC-style compiler flag in the common flags in compileroptions.cmake which caused the following warning: cl : Command line warning D9002 : ignoring unknown option '-O0' * compileroptions.cmake: restored original formatting * daca2.py: added missing import * misra.py: removed unnecessary escaping from regular expression
This commit is contained in:
parent
750ba1a4c1
commit
bb27bc280a
|
@ -663,7 +663,7 @@ def misra_5_3(data):
|
|||
def misra_5_4(data):
|
||||
macro = {}
|
||||
compile_name = re.compile(r'#define ([a-zA-Z0-9_]+)')
|
||||
compile_param = re.compile(r'#define ([a-zA-Z0-9_]+)[\(]([a-zA-Z0-9_, ]+)[\)]')
|
||||
compile_param = re.compile(r'#define ([a-zA-Z0-9_]+)[(]([a-zA-Z0-9_, ]+)[)]')
|
||||
for dir in data.directives:
|
||||
res1 = compile_name.match(dir.str)
|
||||
if res1:
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
# 5. Run the daca2 script: python daca2.py FOLDER
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
import subprocess
|
||||
import sys
|
||||
import shutil
|
||||
|
|
Loading…
Reference in New Issue