mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-08 08:20:33 +00:00
Transition to clang-format 19
This commit is contained in:
parent
e805a08ff5
commit
700d4403d5
247
.clang-format
247
.clang-format
@ -1,100 +1,289 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# SPDX-FileCopyrightText: 2018-2020 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
||||
# SPDX-FileCopyrightText: 2018-2024 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
||||
---
|
||||
Language: Cpp
|
||||
# BasedOnStyle: Google
|
||||
# More info: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
||||
AccessModifierOffset: -4
|
||||
AlignAfterOpenBracket: DontAlign
|
||||
AlignConsecutiveAssignments: false
|
||||
AlignConsecutiveDeclarations: false
|
||||
AlignEscapedNewlinesLeft: true
|
||||
AlignOperands: true
|
||||
AlignArrayOfStructures: None
|
||||
AlignConsecutiveAssignments:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: true
|
||||
AlignConsecutiveBitFields:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: false
|
||||
AlignConsecutiveDeclarations:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: true
|
||||
AlignConsecutiveMacros:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: false
|
||||
AlignConsecutiveShortCaseStatements:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCaseArrows: false
|
||||
AlignCaseColons: false
|
||||
AlignConsecutiveTableGenBreakingDAGArgColons:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: false
|
||||
AlignConsecutiveTableGenCondOperatorColons:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: false
|
||||
AlignConsecutiveTableGenDefinitionColons:
|
||||
Enabled: false
|
||||
AcrossEmptyLines: false
|
||||
AcrossComments: false
|
||||
AlignCompound: false
|
||||
AlignFunctionPointers: false
|
||||
PadOperators: false
|
||||
AlignEscapedNewlines: Left
|
||||
AlignOperands: Align
|
||||
AlignTrailingComments:
|
||||
Kind: Always
|
||||
OverEmptyLines: 0
|
||||
AllowAllArgumentsOnNextLine: true
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AllowBreakBeforeNoexceptSpecifier: Never
|
||||
AllowShortBlocksOnASingleLine: Never
|
||||
AllowShortCaseExpressionOnASingleLine: true
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortCompoundRequirementOnASingleLine: true
|
||||
AllowShortEnumsOnASingleLine: true
|
||||
AllowShortFunctionsOnASingleLine: All
|
||||
AllowShortIfStatementsOnASingleLine: true
|
||||
AllowShortIfStatementsOnASingleLine: WithoutElse
|
||||
AllowShortLambdasOnASingleLine: All
|
||||
AllowShortLoopsOnASingleLine: true
|
||||
AlwaysBreakAfterDefinitionReturnType: None
|
||||
AlwaysBreakAfterReturnType: None
|
||||
AlwaysBreakBeforeMultilineStrings: true
|
||||
AlwaysBreakTemplateDeclarations: false
|
||||
AttributeMacros:
|
||||
- __capability
|
||||
BinPackArguments: true
|
||||
BinPackParameters: true
|
||||
BitFieldColonSpacing: Both
|
||||
BraceWrapping:
|
||||
AfterClass: false
|
||||
AfterControlStatement: false
|
||||
AfterEnum: false
|
||||
AfterFunction: false
|
||||
AfterNamespace: false
|
||||
AfterObjCDeclaration: false
|
||||
AfterStruct: false
|
||||
AfterUnion: false
|
||||
BeforeCatch: false
|
||||
BeforeElse: false
|
||||
IndentBraces: false
|
||||
AfterCaseLabel: true
|
||||
AfterClass: true
|
||||
AfterControlStatement: Always
|
||||
AfterEnum: true
|
||||
AfterExternBlock: true
|
||||
AfterFunction: true
|
||||
AfterNamespace: true
|
||||
AfterObjCDeclaration: true
|
||||
AfterStruct: true
|
||||
AfterUnion: true
|
||||
BeforeCatch: true
|
||||
BeforeElse: true
|
||||
BeforeLambdaBody: false
|
||||
BeforeWhile: true
|
||||
IndentBraces: true
|
||||
SplitEmptyFunction: true
|
||||
SplitEmptyRecord: true
|
||||
SplitEmptyNamespace: true
|
||||
BreakAdjacentStringLiterals: true
|
||||
BreakAfterAttributes: Leave
|
||||
BreakAfterJavaFieldAnnotations: false
|
||||
BreakAfterReturnType: None
|
||||
BreakArrays: true
|
||||
BreakBeforeBinaryOperators: None
|
||||
BreakBeforeConceptDeclarations: Always
|
||||
BreakBeforeBraces: GNU
|
||||
BreakBeforeInlineASMColon: OnlyMultiline
|
||||
BreakBeforeTernaryOperators: true
|
||||
BreakConstructorInitializersBeforeComma: false
|
||||
BreakConstructorInitializers: BeforeColon
|
||||
BreakFunctionDefinitionParameters: false
|
||||
BreakInheritanceList: BeforeColon
|
||||
BreakStringLiterals: true
|
||||
BreakTemplateDeclarations: MultiLine
|
||||
ColumnLimit: 0
|
||||
CommentPragmas: '^ IWYU pragma:'
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||||
CompactNamespaces: false
|
||||
ConstructorInitializerIndentWidth: 4
|
||||
ContinuationIndentWidth: 4
|
||||
Cpp11BracedListStyle: true
|
||||
DerivePointerAlignment: true
|
||||
DisableFormat: false
|
||||
EmptyLineAfterAccessModifier: Never
|
||||
EmptyLineBeforeAccessModifier: LogicalBlock
|
||||
ExperimentalAutoDetectBinPacking: false
|
||||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
||||
FixNamespaceComments: true
|
||||
ForEachMacros:
|
||||
- foreach
|
||||
- Q_FOREACH
|
||||
- BOOST_FOREACH
|
||||
IfMacros:
|
||||
- KJ_IF_MAYBE
|
||||
IncludeBlocks: Merge
|
||||
IncludeCategories:
|
||||
- Regex: '^.*.h"'
|
||||
Priority: 1
|
||||
SortPriority: 0
|
||||
CaseSensitive: false
|
||||
- Regex: '^.*(benchmark|boost|gflags|glog|gnsssdr|gnuradio|gnsstk|gsl|gtest|pmt|uhd|volk)/'
|
||||
Priority: 2
|
||||
SortPriority: 0
|
||||
CaseSensitive: false
|
||||
- Regex: '^.*(armadillo|iio|matio|pugixml)'
|
||||
Priority: 2
|
||||
SortPriority: 0
|
||||
CaseSensitive: false
|
||||
- Regex: '.*'
|
||||
Priority: 3
|
||||
SortPriority: 0
|
||||
CaseSensitive: false
|
||||
- Regex: '^<.*\.h>'
|
||||
Priority: 4
|
||||
SortPriority: 0
|
||||
CaseSensitive: false
|
||||
- Regex: '^<.*'
|
||||
Priority: 5
|
||||
SortPriority: 0
|
||||
CaseSensitive: false
|
||||
IncludeIsMainRegex: '(Test)?$'
|
||||
IncludeIsMainSourceRegex: ''
|
||||
IndentAccessModifiers: false
|
||||
IndentCaseBlocks: false
|
||||
IndentCaseLabels: false
|
||||
IndentExternBlock: AfterExternBlock
|
||||
IndentGotoLabels: true
|
||||
IndentPPDirectives: None
|
||||
IndentRequiresClause: true
|
||||
IndentWidth: 4
|
||||
IndentWrappedFunctionNames: false
|
||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||
InsertBraces: false
|
||||
InsertNewlineAtEOF: false
|
||||
InsertTrailingCommas: None
|
||||
IntegerLiteralSeparator:
|
||||
Binary: 0
|
||||
BinaryMinDigits: 0
|
||||
Decimal: 0
|
||||
DecimalMinDigits: 0
|
||||
Hex: 0
|
||||
HexMinDigits: 0
|
||||
JavaScriptQuotes: Leave
|
||||
JavaScriptWrapImports: true
|
||||
KeepEmptyLines:
|
||||
AtEndOfFile: false
|
||||
AtStartOfBlock: false
|
||||
AtStartOfFile: true
|
||||
LambdaBodyIndentation: Signature
|
||||
LineEnding: DeriveLF
|
||||
MacroBlockBegin: ''
|
||||
MacroBlockEnd: ''
|
||||
MainIncludeChar: Quote
|
||||
MaxEmptyLinesToKeep: 2
|
||||
NamespaceIndentation: None
|
||||
ObjCBinPackProtocolList: Auto
|
||||
ObjCBlockIndentWidth: 2
|
||||
ObjCBreakBeforeNestedBlockParam: true
|
||||
ObjCSpaceAfterProperty: false
|
||||
ObjCSpaceBeforeProtocolList: false
|
||||
PackConstructorInitializers: NextLine
|
||||
PenaltyBreakAssignment: 2
|
||||
PenaltyBreakBeforeFirstCallParameter: 1
|
||||
PenaltyBreakComment: 300
|
||||
PenaltyBreakFirstLessLess: 120
|
||||
PenaltyBreakOpenParenthesis: 0
|
||||
PenaltyBreakScopeResolution: 500
|
||||
PenaltyBreakString: 1000
|
||||
PenaltyBreakTemplateDeclaration: 10
|
||||
PenaltyExcessCharacter: 1000000
|
||||
PenaltyIndentedWhitespace: 0
|
||||
PenaltyReturnTypeOnItsOwnLine: 200
|
||||
PointerAlignment: Left
|
||||
PPIndentWidth: -1
|
||||
QualifierAlignment: Leave
|
||||
ReferenceAlignment: Pointer
|
||||
ReflowComments: true
|
||||
SortIncludes: true
|
||||
RemoveBracesLLVM: false
|
||||
RemoveParentheses: Leave
|
||||
RemoveSemicolon: false
|
||||
RequiresClausePosition: OwnLine
|
||||
RequiresExpressionIndentation: OuterScope
|
||||
SeparateDefinitionBlocks: Leave
|
||||
ShortNamespaceLines: 1
|
||||
SkipMacroDefinitionBody: false
|
||||
SortIncludes: CaseSensitive
|
||||
SortJavaStaticImport: Before
|
||||
SortUsingDeclarations: LexicographicNumeric
|
||||
SpaceAfterCStyleCast: false
|
||||
SpaceAfterLogicalNot: false
|
||||
SpaceAfterTemplateKeyword: true
|
||||
SpaceAroundPointerQualifiers: Default
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
SpaceBeforeCaseColon: false
|
||||
SpaceBeforeCpp11BracedList: false
|
||||
SpaceBeforeCtorInitializerColon: true
|
||||
SpaceBeforeInheritanceColon: true
|
||||
SpaceBeforeJsonColon: false
|
||||
SpaceBeforeParens: ControlStatements
|
||||
SpaceInEmptyParentheses: false
|
||||
SpaceBeforeParensOptions:
|
||||
AfterControlStatements: true
|
||||
AfterForeachMacros: true
|
||||
AfterFunctionDefinitionName: false
|
||||
AfterFunctionDeclarationName: false
|
||||
AfterIfMacros: true
|
||||
AfterOverloadedOperator: false
|
||||
AfterPlacementOperator: true
|
||||
AfterRequiresInClause: false
|
||||
AfterRequiresInExpression: false
|
||||
BeforeNonEmptyParentheses: false
|
||||
SpaceBeforeRangeBasedForLoopColon: true
|
||||
SpaceBeforeSquareBrackets: false
|
||||
SpaceInEmptyBlock: false
|
||||
SpacesBeforeTrailingComments: 2
|
||||
SpacesInAngles: false
|
||||
SpacesInAngles: Never
|
||||
SpacesInContainerLiterals: true
|
||||
SpacesInCStyleCastParentheses: false
|
||||
SpacesInParentheses: false
|
||||
SpacesInLineCommentPrefix:
|
||||
Minimum: 1
|
||||
Maximum: -1
|
||||
SpacesInParens: Never
|
||||
SpacesInParensOptions:
|
||||
ExceptDoubleParentheses: false
|
||||
InCStyleCasts: false
|
||||
InConditionalStatements: false
|
||||
InEmptyParentheses: false
|
||||
Other: false
|
||||
SpacesInSquareBrackets: false
|
||||
Standard: Auto
|
||||
StatementAttributeLikeMacros:
|
||||
- Q_EMIT
|
||||
StatementMacros:
|
||||
- Q_UNUSED
|
||||
- QT_REQUIRE_VERSION
|
||||
TableGenBreakInsideDAGArg: DontBreak
|
||||
TabWidth: 8
|
||||
UseTab: Never
|
||||
VerilogBreakBetweenInstancePorts: true
|
||||
WhitespaceSensitiveMacros:
|
||||
- BOOST_PP_STRINGIZE
|
||||
- CF_SWIFT_NAME
|
||||
- NS_SWIFT_NAME
|
||||
- PP_STRINGIZE
|
||||
- STRINGIZE
|
||||
...
|
||||
|
@ -62,6 +62,7 @@ All notable changes to GNSS-SDR will be documented in this file.
|
||||
|
||||
- Updated GSL implementation to v0.42.0. See the
|
||||
[gsl-lite release](https://github.com/gsl-lite/gsl-lite/releases/tag/v0.42.0).
|
||||
- Code formatting now based on clang-format 19.
|
||||
|
||||
### Improvements in Portability:
|
||||
|
||||
|
@ -137,9 +137,9 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_state(int state __attribute__((unused))) override{};
|
||||
void set_state(int state __attribute__((unused))) override {};
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
|
||||
private:
|
||||
|
@ -179,7 +179,7 @@ public:
|
||||
/*!
|
||||
* \brief Set resampler latency
|
||||
*/
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
static const uint32_t downsampling_factor_default = 4;
|
||||
|
@ -140,7 +140,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
float calculate_threshold(float pfa);
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
float calculate_threshold(float pfa) const;
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
float calculate_threshold(float pfa) const;
|
||||
|
@ -145,7 +145,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
float calculate_threshold(float pfa) const;
|
||||
|
@ -186,7 +186,7 @@ public:
|
||||
/*!
|
||||
* \brief Set resampler latency
|
||||
*/
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
static const uint32_t downsampling_factor_default = 1;
|
||||
|
@ -185,7 +185,7 @@ public:
|
||||
/*!
|
||||
* \brief Set resampler latency
|
||||
*/
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
static const uint32_t downsampling_factor_default = 1;
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
pcps_acquisition_sptr acquisition_;
|
||||
|
@ -146,7 +146,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
pcps_acquisition_sptr acquisition_;
|
||||
|
@ -142,7 +142,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
pcps_acquisition_fine_doppler_cc_sptr acquisition_cc_;
|
||||
|
@ -182,7 +182,7 @@ public:
|
||||
/*!
|
||||
* \brief Set Resampler Latency
|
||||
*/
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
static const uint32_t NUM_PRNs = 32;
|
||||
|
@ -130,14 +130,14 @@ public:
|
||||
* \brief Restart acquisition algorithm
|
||||
*/
|
||||
void reset() override;
|
||||
void set_state(int state __attribute__((unused))) override{};
|
||||
void set_state(int state __attribute__((unused))) override {};
|
||||
|
||||
/*!
|
||||
* \brief Stop running acquisition
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
pcps_assisted_acquisition_cc_sptr acquisition_cc_;
|
||||
|
@ -131,14 +131,14 @@ public:
|
||||
* \brief Restart acquisition algorithm
|
||||
*/
|
||||
void reset() override;
|
||||
void set_state(int state __attribute__((unused))) override{};
|
||||
void set_state(int state __attribute__((unused))) override {};
|
||||
|
||||
/*!
|
||||
* \brief Stop running acquisition
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
inline bool opencl_ready() const
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
float calculate_threshold(float pfa) const;
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
float calculate_threshold(float pfa) const;
|
||||
|
@ -147,7 +147,7 @@ public:
|
||||
*/
|
||||
void stop_acquisition() override;
|
||||
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
static const uint32_t downsampling_factor_default = 1;
|
||||
|
@ -182,7 +182,7 @@ public:
|
||||
/*!
|
||||
* \brief Set resampler latency
|
||||
*/
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override {};
|
||||
|
||||
private:
|
||||
static const uint32_t NUM_PRNs = 32;
|
||||
|
@ -1738,23 +1738,23 @@ int res_ppp(int iter __attribute__((unused)), const obsd_t *obs, int n, const do
|
||||
}
|
||||
nv++;
|
||||
}
|
||||
}
|
||||
for (i = 0; i < nv; i++)
|
||||
}
|
||||
for (i = 0; i < nv; i++)
|
||||
{
|
||||
for (j = 0; j < nv; j++)
|
||||
{
|
||||
R[i + j * nv] = i == j ? var[i] : 0.0;
|
||||
}
|
||||
}
|
||||
trace(5, "x=\n");
|
||||
tracemat(5, x, 1, nx, 8, 3);
|
||||
trace(5, "v=\n");
|
||||
tracemat(5, v, 1, nv, 8, 3);
|
||||
trace(5, "H=\n");
|
||||
tracemat(5, H, nx, nv, 8, 3);
|
||||
trace(5, "R=\n");
|
||||
tracemat(5, R, nv, nv, 8, 5);
|
||||
return nv;
|
||||
trace(5, "x=\n");
|
||||
tracemat(5, x, 1, nx, 8, 3);
|
||||
trace(5, "v=\n");
|
||||
tracemat(5, v, 1, nv, 8, 3);
|
||||
trace(5, "H=\n");
|
||||
tracemat(5, H, nx, nv, 8, 3);
|
||||
trace(5, "R=\n");
|
||||
tracemat(5, R, nv, nv, 8, 5);
|
||||
return nv;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1777,9 +1777,7 @@ gtime_t timeget()
|
||||
{
|
||||
gtime_t time;
|
||||
double ep[6] = {};
|
||||
struct timeval tv
|
||||
{
|
||||
};
|
||||
struct timeval tv{};
|
||||
struct tm *tt;
|
||||
|
||||
if (!gettimeofday(&tv, nullptr) && (tt = gmtime(&tv.tv_sec)))
|
||||
|
@ -87,9 +87,7 @@ serial_t *openserial(const char *path, int mode, char *msg)
|
||||
|
||||
const speed_t bs[] = {
|
||||
B300, B600, B1200, B2400, B4800, B9600, B19200, B38400, B57600, B115200, B230400};
|
||||
struct termios ios
|
||||
{
|
||||
};
|
||||
struct termios ios{};
|
||||
int rw = 0;
|
||||
tracet(3, "openserial: path=%s mode=%d\n", path, mode);
|
||||
|
||||
@ -1104,9 +1102,7 @@ void updatetcpsvr(tcpsvr_t *tcpsvr, char *msg)
|
||||
/* accept client connection --------------------------------------------------*/
|
||||
int accsock(tcpsvr_t *tcpsvr, char *msg)
|
||||
{
|
||||
struct sockaddr_in addr
|
||||
{
|
||||
};
|
||||
struct sockaddr_in addr{};
|
||||
socket_t sock;
|
||||
socklen_t len = sizeof(addr);
|
||||
int i;
|
||||
|
@ -70,7 +70,7 @@ private:
|
||||
public:
|
||||
// ctor
|
||||
volk_gnsssdr_test_params_t(float tol, lv_32fc_t scalar, unsigned int vlen, unsigned int iter,
|
||||
bool benchmark_mode, std::string kernel_regex) : _tol(tol), _scalar(scalar), _vlen(vlen), _iter(iter), _benchmark_mode(benchmark_mode), _kernel_regex(std::move(kernel_regex)){};
|
||||
bool benchmark_mode, std::string kernel_regex) : _tol(tol), _scalar(scalar), _vlen(vlen), _iter(iter), _benchmark_mode(benchmark_mode), _kernel_regex(std::move(kernel_regex)) {};
|
||||
// setters
|
||||
void set_tol(float tol) { _tol = tol; };
|
||||
void set_scalar(lv_32fc_t scalar) { _scalar = scalar; };
|
||||
@ -104,10 +104,10 @@ public:
|
||||
volk_gnsssdr_test_params_t test_parameters() { return _test_parameters; };
|
||||
// normal ctor
|
||||
volk_gnsssdr_test_case_t(volk_gnsssdr_func_desc_t desc, void (*kernel_ptr)(), std::string name,
|
||||
volk_gnsssdr_test_params_t test_parameters) : _desc(desc), _kernel_ptr(kernel_ptr), _name(std::move(name)), _test_parameters(std::move(test_parameters)), _puppet_master_name("NULL"){};
|
||||
volk_gnsssdr_test_params_t test_parameters) : _desc(desc), _kernel_ptr(kernel_ptr), _name(std::move(name)), _test_parameters(std::move(test_parameters)), _puppet_master_name("NULL") {};
|
||||
// ctor for puppets
|
||||
volk_gnsssdr_test_case_t(volk_gnsssdr_func_desc_t desc, void (*kernel_ptr)(), std::string name,
|
||||
std::string puppet_master_name, volk_gnsssdr_test_params_t test_parameters) : _desc(desc), _kernel_ptr(kernel_ptr), _name(std::move(name)), _test_parameters(std::move(test_parameters)), _puppet_master_name(std::move(puppet_master_name)){};
|
||||
std::string puppet_master_name, volk_gnsssdr_test_params_t test_parameters) : _desc(desc), _kernel_ptr(kernel_ptr), _name(std::move(name)), _test_parameters(std::move(test_parameters)), _puppet_master_name(std::move(puppet_master_name)) {};
|
||||
};
|
||||
|
||||
/************************************************
|
||||
|
@ -84,9 +84,7 @@ private:
|
||||
|
||||
boost::thread *d_pcap_thread;
|
||||
// boost::mutex d_mutex;
|
||||
struct sockaddr_in si_me
|
||||
{
|
||||
};
|
||||
struct sockaddr_in si_me{};
|
||||
std::string d_src_device;
|
||||
std::string d_origin_address;
|
||||
pcap_t *descr; // ethernet pcap device descriptor
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
~glonass_l1_ca_telemetry_decoder_gs() override; //!< Class destructor
|
||||
void set_satellite(const Gnss_Satellite &satellite); //!< Set satellite PRN
|
||||
void set_channel(int32_t channel); //!< Set receiver's channel
|
||||
inline void reset(){};
|
||||
inline void reset() {};
|
||||
|
||||
/*!
|
||||
* \brief This is where all signal processing takes place
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
~glonass_l2_ca_telemetry_decoder_gs() override; //!< Class destructor
|
||||
void set_satellite(const Gnss_Satellite &satellite); //!< Set satellite PRN
|
||||
void set_channel(int32_t channel); //!< Set receiver's channel
|
||||
inline void reset(){};
|
||||
inline void reset() {};
|
||||
|
||||
/*!
|
||||
* \brief This is where all signal processing takes place
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
~sbas_l1_telemetry_decoder_gs() override;
|
||||
void set_satellite(const Gnss_Satellite &satellite); //!< Set satellite PRN
|
||||
void set_channel(int32_t channel); //!< Set receiver's channel
|
||||
inline void reset(){};
|
||||
inline void reset() {};
|
||||
|
||||
/*!
|
||||
* \brief This is where all signal processing takes place
|
||||
|
@ -46,7 +46,7 @@ struct GPU_Complex
|
||||
{
|
||||
float r;
|
||||
float i;
|
||||
CUDA_CALLABLE_MEMBER_DEVICE GPU_Complex(){};
|
||||
CUDA_CALLABLE_MEMBER_DEVICE GPU_Complex() {};
|
||||
CUDA_CALLABLE_MEMBER_DEVICE GPU_Complex(float a, float b) : r(a), i(b) {}
|
||||
CUDA_CALLABLE_MEMBER_DEVICE float magnitude2(void) { return r * r + i * i; }
|
||||
CUDA_CALLABLE_MEMBER_DEVICE GPU_Complex operator*(const GPU_Complex& a)
|
||||
|
@ -46,7 +46,7 @@
|
||||
class ModelFunction
|
||||
{
|
||||
public:
|
||||
ModelFunction(){};
|
||||
ModelFunction() {};
|
||||
virtual arma::vec operator()(const arma::vec& input) = 0;
|
||||
virtual ~ModelFunction() = default;
|
||||
};
|
||||
|
@ -98,7 +98,7 @@ public:
|
||||
/*!
|
||||
* \brief Start the flow of samples if needed.
|
||||
*/
|
||||
virtual void start(){};
|
||||
virtual void start() {};
|
||||
};
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
// clang-format off
|
||||
/* Environment version might be used to avoid running with the old library */
|
||||
#define ASN1C_ENVIRONMENT_VERSION 922 /* Compile-time version */
|
||||
int get_asn1c_environment_version(void); /* Run-time version */
|
||||
|
@ -29,7 +29,7 @@
|
||||
/* To avoid linking with ws2_32.lib, here's the definition of ntohl() */
|
||||
#define sys_ntohl(l) \
|
||||
((((l) << 24) & 0xff000000) | (((l) << 16) & 0xff0000) | \
|
||||
(((l) << 8) & 0xff00) | ((l)&0xff))
|
||||
(((l) << 8) & 0xff00) | ((l) & 0xff))
|
||||
|
||||
#ifdef _MSC_VER /* MSVS.Net */
|
||||
#ifndef __cplusplus
|
||||
|
@ -22,7 +22,7 @@ extern "C"
|
||||
/*
|
||||
* Tag class is encoded together with tag value for optimization purposes.
|
||||
*/
|
||||
#define BER_TAG_CLASS(tag) ((tag)&0x3)
|
||||
#define BER_TAG_CLASS(tag) ((tag) & 0x3)
|
||||
#define BER_TAG_VALUE(tag) ((tag) >> 2)
|
||||
#define BER_TLV_CONSTRUCTED(tagptr) \
|
||||
(((*(const uint8_t *)tagptr) & 0x20) ? 1 : 0)
|
||||
|
@ -244,9 +244,7 @@ void ControlThread::init()
|
||||
else
|
||||
{
|
||||
// fill agnss_ref_time_
|
||||
struct tm tm
|
||||
{
|
||||
};
|
||||
struct tm tm{};
|
||||
if (strptime(ref_time_str.c_str(), "%d/%m/%Y %H:%M:%S", &tm) != nullptr)
|
||||
{
|
||||
agnss_ref_time_.seconds = timegm(&tm);
|
||||
@ -1046,9 +1044,7 @@ std::vector<std::pair<int, Gnss_Satellite>> ControlThread::get_visible_sats(time
|
||||
std::vector<unsigned int> visible_gps;
|
||||
std::vector<unsigned int> visible_gal;
|
||||
const std::shared_ptr<PvtInterface> pvt_ptr = flowgraph_->get_pvt();
|
||||
struct tm tstruct
|
||||
{
|
||||
};
|
||||
struct tm tstruct{};
|
||||
char buf[80];
|
||||
tstruct = *gmtime(&rx_utc_time);
|
||||
strftime(buf, sizeof(buf), "%d/%m/%Y %H:%M:%S ", &tstruct);
|
||||
|
@ -146,9 +146,7 @@ std::string TcpCmdInterface::status(const std::vector<std::string> &commandLine
|
||||
&course_over_ground_deg,
|
||||
&UTC_time) == true)
|
||||
{
|
||||
struct tm tstruct
|
||||
{
|
||||
};
|
||||
struct tm tstruct{};
|
||||
std::array<char, 80> buf1{};
|
||||
tstruct = *gmtime(&UTC_time);
|
||||
strftime(buf1.data(), buf1.size(), "%d/%m/%Y %H:%M:%S", &tstruct);
|
||||
@ -179,9 +177,7 @@ std::string TcpCmdInterface::hotstart(const std::vector<std::string> &commandLin
|
||||
if (commandLine.size() > 5)
|
||||
{
|
||||
// Read commandline time parameter
|
||||
struct tm tm
|
||||
{
|
||||
};
|
||||
struct tm tm{};
|
||||
const std::string tmp_str = commandLine.at(1) + commandLine.at(2);
|
||||
if (strptime(tmp_str.c_str(), "%d/%m/%Y %H:%M:%S", &tm) == nullptr)
|
||||
{
|
||||
@ -227,9 +223,7 @@ std::string TcpCmdInterface::warmstart(const std::vector<std::string> &commandLi
|
||||
if (commandLine.size() > 5)
|
||||
{
|
||||
// Read commandline time parameter
|
||||
struct tm tm
|
||||
{
|
||||
};
|
||||
struct tm tm{};
|
||||
const std::string tmp_str = commandLine.at(1) + commandLine.at(2);
|
||||
if (strptime(tmp_str.c_str(), "%d/%m/%Y %H:%M:%S", &tm) == nullptr)
|
||||
{
|
||||
|
@ -89,8 +89,7 @@ constexpr int32_t GLONASS_L1_CA_HISTORY_DEEP = 100;
|
||||
// NAVIGATION MESSAGE DEMODULATION AND DECODING
|
||||
#define GLONASS_GNAV_PREAMBLE \
|
||||
{ \
|
||||
1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0 \
|
||||
}
|
||||
1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0}
|
||||
constexpr double GLONASS_GNAV_PREAMBLE_DURATION_S = 0.300;
|
||||
constexpr int32_t GLONASS_GNAV_PREAMBLE_LENGTH_BITS = 30;
|
||||
constexpr int32_t GLONASS_GNAV_PREAMBLE_LENGTH_SYMBOLS = 300;
|
||||
|
@ -173,7 +173,7 @@ public:
|
||||
const std::vector<std::string>& s2_) : msg(msg_),
|
||||
nt(nt_),
|
||||
sequence1(s1_),
|
||||
sequence2(s2_){};
|
||||
sequence2(s2_) {};
|
||||
uint8_t msg{};
|
||||
uint8_t nt{};
|
||||
std::vector<std::string> sequence1;
|
||||
|
@ -37,8 +37,7 @@ TEST(FFTSpeedTest, ArmadilloVSGNURadioExecutionTime)
|
||||
unsigned int fft_sizes[19] = {16, 25, 32, 45, 64, 95, 128, 195, 256, 325, 512, 785, 1024, 1503, 2048, 3127, 4096, 6349, 8192};
|
||||
double d_execution_time;
|
||||
EXPECT_NO_THROW(
|
||||
for (unsigned int fft_size
|
||||
: fft_sizes) {
|
||||
for (unsigned int fft_size : fft_sizes) {
|
||||
d_fft_size = fft_size;
|
||||
auto d_gr_fft = gnss_fft_fwd_make_unique(d_fft_size);
|
||||
arma::arma_rng::set_seed_random();
|
||||
|
@ -25,7 +25,7 @@
|
||||
class TransitionModel : public ModelFunction
|
||||
{
|
||||
public:
|
||||
explicit TransitionModel(const arma::mat& kf_F) : coeff_mat(kf_F){};
|
||||
explicit TransitionModel(const arma::mat& kf_F) : coeff_mat(kf_F) {};
|
||||
arma::vec operator()(const arma::vec& input) override { return coeff_mat * input; };
|
||||
|
||||
private:
|
||||
@ -35,7 +35,7 @@ private:
|
||||
class MeasurementModel : public ModelFunction
|
||||
{
|
||||
public:
|
||||
explicit MeasurementModel(const arma::mat& kf_H) : coeff_mat(kf_H){};
|
||||
explicit MeasurementModel(const arma::mat& kf_H) : coeff_mat(kf_H) {};
|
||||
arma::vec operator()(const arma::vec& input) override { return coeff_mat * input; };
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user