forked from mfulz_github/qmk_firmware
Update StaticAnalysisTest to check for missing header files. Fix found incorrect header file paths in the demos and projects.
This commit is contained in:
parent
bb85d083a7
commit
7416ebd7c6
|
@ -9,15 +9,19 @@
|
|||
# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
|
||||
|
||||
# Path to the root of the LUFA tree to scan
|
||||
LUFA_ROOT_PATH = ../../
|
||||
LUFA_ROOT_PATH = ../../
|
||||
|
||||
# Filenames or directories (including fragments) to exclude from the analysis
|
||||
EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
|
||||
EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
|
||||
|
||||
# Output message template for found warnings and errors
|
||||
MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
|
||||
MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
|
||||
|
||||
# Checks to suppress so that generated warnings are discarded
|
||||
SUPPRESS_WARNINGS = variableScope unusedFunction missingInclude
|
||||
|
||||
all:
|
||||
cppcheck -q -f --error-exitcode=1 --inline-suppr --enable=style --suppress=variableScope --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
|
||||
cppcheck -q --std=c99 --check-config $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
|
||||
cppcheck -q -f --std=c99 --error-exitcode=1 --inline-suppr --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
|
||||
|
||||
%:
|
|
@ -39,8 +39,8 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "MassStorage.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../MassStorage.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
||||
#include "MassStorage.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../MassStorage.h"
|
||||
#include "../Descriptors.h"
|
||||
#include "DataflashManager.h"
|
||||
|
||||
/* Macros: */
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "MassStorageKeyboard.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../MassStorageKeyboard.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
||||
#include "MassStorageKeyboard.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../MassStorageKeyboard.h"
|
||||
#include "../Descriptors.h"
|
||||
#include "DataflashManager.h"
|
||||
|
||||
/* Macros: */
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "VirtualSerialMassStorage.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../VirtualSerialMassStorage.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
||||
#include "VirtualSerialMassStorage.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../VirtualSerialMassStorage.h"
|
||||
#include "../Descriptors.h"
|
||||
#include "DataflashManager.h"
|
||||
|
||||
/* Macros: */
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "Sideshow.h"
|
||||
#include "../Sideshow.h"
|
||||
#include "SideshowCommon.h"
|
||||
#include "SideshowApplications.h"
|
||||
#include "SideshowContent.h"
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "MassStorage.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../MassStorage.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
#include <LUFA/Drivers/USB/USB.h>
|
||||
#include <LUFA/Drivers/Board/LEDs.h>
|
||||
|
||||
#include "MassStorage.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../MassStorage.h"
|
||||
#include "../Descriptors.h"
|
||||
#include "DataflashManager.h"
|
||||
|
||||
/* Macros: */
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include <avr/io.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "RNDISEthernet.h"
|
||||
#include "../RNDISEthernet.h"
|
||||
#include "Ethernet.h"
|
||||
|
||||
/* External Variables: */
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "MassStorageHost.h"
|
||||
#include "../MassStorageHost.h"
|
||||
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "StandaloneProgrammer.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../StandaloneProgrammer.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
#include <LUFA/Drivers/Board/Dataflash.h>
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
||||
#include "StandaloneProgrammer.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../StandaloneProgrammer.h"
|
||||
#include "../Descriptors.h"
|
||||
#include "DataflashManager.h"
|
||||
|
||||
/* Macros: */
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "TempDataLogger.h"
|
||||
#include "Descriptors.h"
|
||||
#include "../TempDataLogger.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
||||
#include "Descriptors.h"
|
||||
#include "../Descriptors.h"
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/USB/USB.h>
|
||||
|
|
|
@ -44,10 +44,10 @@
|
|||
#include <uip-split.h>
|
||||
#include <timer.h>
|
||||
|
||||
#include "Lib/DHCPClientApp.h"
|
||||
#include "Lib/DHCPServerApp.h"
|
||||
#include "Lib/HTTPServerApp.h"
|
||||
#include "Lib/TELNETServerApp.h"
|
||||
#include "DHCPClientApp.h"
|
||||
#include "DHCPServerApp.h"
|
||||
#include "HTTPServerApp.h"
|
||||
#include "TELNETServerApp.h"
|
||||
|
||||
/* Macros: */
|
||||
/** IP address that the webserver should use once connected to a RNDIS device (when DHCP is disabled). */
|
||||
|
|
Loading…
Reference in New Issue