Commit 7416ebd7 authored by Dean Camera's avatar Dean Camera
Browse files

Update StaticAnalysisTest to check for missing header files. Fix found...

Update StaticAnalysisTest to check for missing header files. Fix found incorrect header file paths in the demos and projects.
parent bb85d083
......@@ -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)
%:
\ No newline at end of file
......@@ -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). */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment