mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
buildsystem: Enable -Wdocumentation for LLVM
This enables warnings for incorrect Doxygen comments when build with LLVM. To my experience, LLVM provides a low false positive rate (e.g. it does not complain about undocumented internal macros) and has very helpful output. This disable `-Wdocumentation-deprecated-sync` for now, as we do not deprecate code with attributes yet. The warnings are not set as errors, so that we can enable this without breaking builds.
This commit is contained in:
parent
17d2516a54
commit
d838c6aa3d
@ -40,6 +40,7 @@ CFLAGS += -Wstrict-overflow
|
|||||||
# Worse yet they hide errors by accepting wildcard argument types.
|
# Worse yet they hide errors by accepting wildcard argument types.
|
||||||
OPTIONAL_CFLAGS += -Wstrict-prototypes
|
OPTIONAL_CFLAGS += -Wstrict-prototypes
|
||||||
OPTIONAL_CFLAGS += -Wold-style-definition
|
OPTIONAL_CFLAGS += -Wold-style-definition
|
||||||
|
OPTIONAL_CFLAGS += -Wdocumentation -Wno-error=documentation -Wno-documentation-deprecated-sync
|
||||||
|
|
||||||
# Unwanted flags for c++
|
# Unwanted flags for c++
|
||||||
CXXUWFLAGS += -std=%
|
CXXUWFLAGS += -std=%
|
||||||
|
|||||||
@ -30,6 +30,9 @@ ifneq (8, $(firstword $(shell echo 8 $(GCC_VERSION) | tr ' ' '\n' | sort -n)))
|
|||||||
OPTIONAL_CFLAGS_BLACKLIST += -fmacro-prefix-map=$(RIOTBASE)/=
|
OPTIONAL_CFLAGS_BLACKLIST += -fmacro-prefix-map=$(RIOTBASE)/=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# GCC does not warn about documentation (yet)
|
||||||
|
OPTIONAL_CFLAGS_BLACKLIST += -Wdocumentation -Wno-error=documentation -Wno-documentation-deprecated-sync
|
||||||
|
|
||||||
# We use GDB for debugging
|
# We use GDB for debugging
|
||||||
include $(RIOTMAKE)/tools/gdb.inc.mk
|
include $(RIOTMAKE)/tools/gdb.inc.mk
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user