From b1515377b53fdac3c4724739ee8ba7d5f96c703b Mon Sep 17 00:00:00 2001 From: hasecilu Date: Tue, 19 Dec 2023 17:01:17 -0600 Subject: [PATCH] Add ':' to TODOs to activate highlight Some linters have a special highlightning on "TODO:" comments. --- src/Base/QuantityLexer.c | 2 +- src/Base/UnitsSchemaImperial1.cpp | 12 ++++++------ src/Base/UnitsSchemaInternal.cpp | 2 +- src/Base/VectorPyImp.cpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Base/QuantityLexer.c b/src/Base/QuantityLexer.c index 9a08a69a3c..c21f3d9fa8 100644 --- a/src/Base/QuantityLexer.c +++ b/src/Base/QuantityLexer.c @@ -2149,7 +2149,7 @@ static int yy_get_next_buffer (void) void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { - /* TODO. We should be able to replace this entire function body + /* TODO: We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); diff --git a/src/Base/UnitsSchemaImperial1.cpp b/src/Base/UnitsSchemaImperial1.cpp index b838987df2..37c6d30860 100644 --- a/src/Base/UnitsSchemaImperial1.cpp +++ b/src/Base/UnitsSchemaImperial1.cpp @@ -82,19 +82,19 @@ UnitsSchemaImperial1::schemaTranslate(const Quantity& quant, double& factor, QSt factor = 1.0; } else if (unit == Unit::Area) { - // TODO Cascade for the Areas + // TODO: Cascade for the Areas // default action for all cases without special treatment: unitString = QString::fromLatin1("in^2"); factor = 645.16; } else if (unit == Unit::Volume) { - // TODO Cascade for the Volume + // TODO: Cascade for the Volume // default action for all cases without special treatment: unitString = QString::fromLatin1("in^3"); factor = 16387.064; } else if (unit == Unit::Mass) { - // TODO Cascade for the weights + // TODO: Cascade for the weights // default action for all cases without special treatment: unitString = QString::fromLatin1("lb"); factor = 0.45359237; @@ -149,19 +149,19 @@ QString UnitsSchemaImperialDecimal::schemaTranslate(const Base::Quantity& quant, factor = 1.0; } else if (unit == Unit::Area) { - // TODO Cascade for the Areas + // TODO: Cascade for the Areas // default action for all cases without special treatment: unitString = QString::fromLatin1("in^2"); factor = 645.16; } else if (unit == Unit::Volume) { - // TODO Cascade for the Volume + // TODO: Cascade for the Volume // default action for all cases without special treatment: unitString = QString::fromLatin1("in^3"); factor = 16387.064; } else if (unit == Unit::Mass) { - // TODO Cascade for the weights + // TODO: Cascade for the weights // default action for all cases without special treatment: unitString = QString::fromLatin1("lb"); factor = 0.45359237; diff --git a/src/Base/UnitsSchemaInternal.cpp b/src/Base/UnitsSchemaInternal.cpp index 1e3c7e482d..c3d13cd38e 100644 --- a/src/Base/UnitsSchemaInternal.cpp +++ b/src/Base/UnitsSchemaInternal.cpp @@ -117,7 +117,7 @@ UnitsSchemaInternal::schemaTranslate(const Quantity& quant, double& factor, QStr } } else if (unit == Unit::Angle) { - // TODO Cascade for the Areas + // TODO: Cascade for the Areas // default action for all cases without special treatment: unitString = QString::fromUtf8("\xC2\xB0"); factor = 1.0; diff --git a/src/Base/VectorPyImp.cpp b/src/Base/VectorPyImp.cpp index fb08d09def..a22b15a904 100644 --- a/src/Base/VectorPyImp.cpp +++ b/src/Base/VectorPyImp.cpp @@ -713,7 +713,7 @@ int VectorPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/) return 0; } -// TODO for v0.18: +// TODO: for v0.18 // In generation script allow to more precisely define which slots // of the number protocol should be supported instead of setting all.