Skip to content

Commit 03d7ab0

Browse files
committed
feat: Set default legacy mode to false in DUI::addIncludePath
This changes the default value of the 'legacy' parameter in the DUI::addIncludePath method to false. Since this API was just introduced, it is preferred to use the new capabilities by preserving the left-to-right order.
1 parent 517d296 commit 03d7ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplecpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ namespace simplecpp {
430430
* If 'legacy' is true, the path is added to the 'includePaths' vector;
431431
* otherwise, it is added to 'searchPaths' with 'PathKind::Include'.
432432
*/
433-
void addIncludePath(const std::string& path, bool legacy) {
433+
void addIncludePath(const std::string& path, bool legacy=false) {
434434
if (legacy) {
435435
includePaths.push_back(path);
436436
} else {

0 commit comments

Comments
 (0)