Skip to content

Commit 7938331

Browse files
authored
Improve doxygen docs (#819)
1 parent 2605fa9 commit 7938331

11 files changed

Lines changed: 31 additions & 25 deletions

File tree

docs/Doxyfile.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ INPUT_ENCODING = UTF-8
763763
# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,
764764
# *.qsf, *.as and *.js.
765765

766-
FILE_PATTERNS = *.dox *.c *.h *.cpp *.hh *.cu *.cuh
766+
FILE_PATTERNS = *.dox *.c *.h *.def *.cpp *.hh *.cu *.cuh
767767

768768
# The RECURSIVE tag can be used to specify whether or not subdirectories should
769769
# be searched for input files as well.
@@ -1895,15 +1895,15 @@ ENABLE_PREPROCESSING = YES
18951895
# The default value is: NO.
18961896
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
18971897

1898-
MACRO_EXPANSION = NO
1898+
MACRO_EXPANSION = YES
18991899

19001900
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
19011901
# the macro expansion is limited to the macros specified with the PREDEFINED and
19021902
# EXPAND_AS_DEFINED tags.
19031903
# The default value is: NO.
19041904
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
19051905

1906-
EXPAND_ONLY_PREDEF = NO
1906+
EXPAND_ONLY_PREDEF = YES
19071907

19081908
# If the SEARCH_INCLUDES tag is set to YES the includes files in the
19091909
# INCLUDE_PATH will be searched if a #include is found.
@@ -1944,7 +1944,7 @@ PREDEFINED =
19441944
# definition found in the source code.
19451945
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
19461946

1947-
EXPAND_AS_DEFINED =
1947+
EXPAND_AS_DEFINED = DATA_FLOW_ANALYSIS_TYPES ANALYSIS_STRATEGY_TYPES CALL_GRAPH_ANALYSIS_TYPE ALIAS_ANALYSIS_TYPE ALIAS_RESULT_TYPE SEVERITY_LEVEL SPECIAL_MEMBER_FUNCTION_TYPES SOUNDNESS_FLAG_TYPE
19481948

19491949
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
19501950
# remove all refrences to function-like macros that are alone on a line, have an
@@ -1954,7 +1954,7 @@ EXPAND_AS_DEFINED =
19541954
# The default value is: YES.
19551955
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
19561956

1957-
SKIP_FUNCTION_MACROS = YES
1957+
SKIP_FUNCTION_MACROS = NO
19581958

19591959
#---------------------------------------------------------------------------
19601960
# Configuration options related to external references

include/phasar/DataFlow/IfdsIde/IFDSTabulationProblem.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class IFDSTabulationProblem
5555
/// `"__ALL__"`
5656
/// @param[in] ZeroValue Provides the special tautological zero value (aka.
5757
/// Λ).
58-
/// \endlink.
5958
explicit IFDSTabulationProblem(const db_t *IRDB,
6059
std::vector<std::string> EntryPoints,
6160
d_t ZeroValue)

include/phasar/PhasarLLVM/DataFlow/IfdsIde/CFLFieldSensIFDSProblem.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939

4040
namespace psr::cfl_fieldsens {
4141

42-
/// \file Implements field-sensitivity after the paper "Boosting the performance
42+
/// \file
43+
/// Implements field-sensitivity after the paper "Boosting the performance
4344
/// of alias-aware IFDS analysis with CFL-based environment transformers" by Li
4445
/// et al. <https://doi.org/10.1145/3689804>
4546

include/phasar/PhasarLLVM/Utils/Annotation.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
namespace psr {
1212

13-
/// \file Helper classes that allow for an easier retrieval of annotation
13+
/// \file
14+
/// Helper classes that allow for an easier retrieval of annotation
1415
/// information.
1516

1617
class VarAnnotation {

include/phasar/PhasarLLVM/Utils/LLVMIRToSrc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class DILocation;
3939

4040
namespace psr {
4141

42-
/// \file This file contains useful structs and functions to get and store
42+
/// \file
43+
/// This file contains useful structs and functions to get and store
4344
/// information about the source code or the intermediate representation of the
4445
/// target being analyzed.
4546

include/phasar/PhasarLLVM/Utils/LLVMShorthands.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ llvm::ModuleSlotTracker &getModuleSlotTrackerFor(const llvm::Value *V);
8484
[[nodiscard]] std::string llvmIRToString(const llvm::Value *V);
8585

8686
/**
87-
* @brief Similar to llvmIRToString, but removes the metadata from the output as
88-
* they are not always stable. Prefer this function over llvmIRToString, if you
89-
* are comparing the string representations of LLVM iR instructions.
87+
* @brief Similar to llvmIRToString(), but removes the metadata from the output
88+
* as they are not always stable. Prefer this function over llvmIRToString, if
89+
* you are comparing the string representations of LLVM iR instructions.
9090
*/
9191
[[nodiscard]] std::string llvmIRToStableString(const llvm::Value *V);
9292

9393
/**
94-
* @brief Same as @link(llvmIRToString) but tries to shorten the
94+
* @brief Same as llvmIRToString() but tries to shorten the
9595
* resulting string
9696
*/
9797
std::string llvmIRToShortString(const llvm::Value *V);
@@ -129,7 +129,7 @@ globalValuesUsedinFunction(const llvm::Function *F);
129129
* Only Instructions and GlobalVariables have 'real' ID's, i.e. annotated meta
130130
* data. Formal arguments cannot be annotated with metadata in LLVM. Therefore,
131131
* a formal arguments ID will look like this:
132-
* <function_name>.<#argument>
132+
* `<function_name>.<#argument>`
133133
*
134134
* ZeroValue will have -1 as ID by default.
135135
*
@@ -161,7 +161,7 @@ int getFunctionArgumentNr(const llvm::Argument *Arg);
161161
*
162162
* @brief Returns the n-th LLVM Argument of a given LLVM Function.
163163
* @param F Function to retrieve the Arguments from.
164-
* @param argNo Argument number.
164+
* @param ArgNo Argument number.
165165
* @return LLVM Argument or nullptr, if argNo invalid.
166166
*/
167167
const llvm::Argument *getNthFunctionArgument(const llvm::Function *F,
@@ -172,7 +172,7 @@ const llvm::Argument *getNthFunctionArgument(const llvm::Function *F,
172172
*
173173
* @brief Returns the n-th LLVM Instruction of a given LLVM Function.
174174
* @param F Function to retrieve the Instruction from.
175-
* @param instNo Instruction number.
175+
* @param Idx Instruction number.
176176
* @return LLVM Instruction or nullptr, if instNo invalid.
177177
*/
178178
const llvm::Instruction *getNthInstruction(const llvm::Function *F,
@@ -187,7 +187,7 @@ const llvm::Instruction *getLastInstructionOf(const llvm::Function *F);
187187
* @brief Returns the n-th LLVM Termination Instruction of a given LLVM
188188
* Function.
189189
* @param F Function to retrieve the Termination Instruction from.
190-
* @param termInstNo Termination Instruction number.
190+
* @param TermInstNo Termination Instruction number.
191191
* @return LLVM Instruction or nullptr, if termInstNo invalid.
192192
*/
193193
const llvm::Instruction *getNthTermInstruction(const llvm::Function *F,
@@ -199,7 +199,7 @@ const llvm::Instruction *getNthTermInstruction(const llvm::Function *F,
199199
* @brief Returns the n-th LLVM Store Instruction of a given LLVM
200200
* Function.
201201
* @param F Function to retrieve the Store Instruction from.
202-
* @param termInstNo Store Instruction number.
202+
* @param TermInstNo Store Instruction number.
203203
* @return LLVM Store Instruction or nullptr, if stoNo invalid.
204204
*/
205205
const llvm::StoreInst *getNthStoreInstruction(const llvm::Function *F,
@@ -230,7 +230,7 @@ std::string getModuleNameFromVal(const llvm::Value *V);
230230
/**
231231
* @brief Computes a hash value for a given LLVM Module.
232232
* @param M LLVM Module.
233-
* @param considerIdentifier If true, module identifier will be considered for
233+
* @param ConsiderIdentifier If true, module identifier will be considered for
234234
* hash computation.
235235
* @return Hash value.
236236
*/

include/phasar/Utils/DebugOutput.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
namespace psr {
2424
namespace detail {
2525

26-
/// \file This file contains many useful ways of printing information for
26+
/// \file
27+
/// This file contains many useful ways of printing information for
2728
/// debugging purposes.
2829

2930
template <typename OS_t, typename T> void printHelper(OS_t &OS, const T &Data);

include/phasar/Utils/ErrorHandling.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
namespace psr {
2121

22-
/// \file This file contains useful functions for handling errors, by using
22+
/// \file
23+
/// This file contains useful functions for handling errors, by using
2324
/// std::system_error, or returning null or a default value.
2425

2526
template <typename T> T getOrThrow(llvm::ErrorOr<T> ValOrErr) {

include/phasar/Utils/IO.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
namespace psr {
3030

31-
/// \file This file contains functions for reading in text files and json files
31+
/// \file
32+
/// This file contains functions for reading in text files and json files
3233
/// and provides error handling capabilities as well, if needed.
3334

3435
[[nodiscard]] llvm::ErrorOr<std::string>

include/phasar/Utils/MemoryResource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/// On some MAC systems, <memory_resource> is still not fully implemented, so do
2-
/// a workaround here
1+
/// On some MAC systems, `<memory_resource>` is still not fully implemented, so
2+
/// do a workaround here
33

44
#ifndef HAS_MEMORY_RESOURCE
55
#if !defined(__has_include) || __has_include(<memory_resource>)

0 commit comments

Comments
 (0)