From 54faab890f1b2b3ce76c7019c89675e1f8217448 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 22 Jul 2025 11:46:16 +0200 Subject: [PATCH 1/2] Use quotes for local project header includes Replace angle brackets <...> with quotes "..." for project headers to improve compatibility with IDEs and tooling. While both forms are valid, many tools and IDEs treat quoted includes as local files, enabling better indexing, navigation, and refactoring support. --- src/jurand.cpp | 2 +- src/jurand_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jurand.cpp b/src/jurand.cpp index b1e986f..787f101 100644 --- a/src/jurand.cpp +++ b/src/jurand.cpp @@ -3,7 +3,7 @@ #include #include -#include +#include "java_symbols.hpp" using namespace java_symbols; diff --git a/src/jurand_test.cpp b/src/jurand_test.cpp index f6c9ce7..2c5ca77 100644 --- a/src/jurand_test.cpp +++ b/src/jurand_test.cpp @@ -1,7 +1,7 @@ #include #include -#include +#include "java_symbols.hpp" using namespace java_symbols; From c77a96f77bd02a5867974a8c9f28b86310004d47 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 22 Jul 2025 13:56:10 +0200 Subject: [PATCH 2/2] Remove -Isrc now that local includes use quotes Follow up to switching from angle brackets to quoted includes for local headers. Since headers are now included with "..." and reside in the same or subdirectories, the -Isrc include path is no longer necessary. --- Makefile | 2 +- compile_flags.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 03b545b..c18bbcf 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include rules.mk .PHONY: force all clean test-compile test coverage manpages test-install clean-install .DEFAULT_GOAL = all -CXXFLAGS += -g -std=c++2a -Isrc -Wall -Wextra -Wpedantic +CXXFLAGS += -g -std=c++2a -Wall -Wextra -Wpedantic all: $(call Executable_file,jurand) diff --git a/compile_flags.txt b/compile_flags.txt index a49f21a..155833a 100644 --- a/compile_flags.txt +++ b/compile_flags.txt @@ -1,5 +1,4 @@ -std=c++2a --Isrc -Wall -Wextra -Wpedantic