Skip to content

Commit 279980b

Browse files
committed
Add some Doxygen @brief lines.
1 parent ac945c3 commit 279980b

File tree

9 files changed

+32
-2
lines changed

9 files changed

+32
-2
lines changed

dump.hh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// @file
2+
/// @brief Dump syntax trees as GraphML
13
#ifndef DUMP_HH
24
#define DUMP_HH
35

expr.hh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// @file
2+
/// @brief grammar: Value expression productions
3+
14
#ifndef EXPR_HH
25
#define EXPR_HH
36

grammar.hh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// @file
2+
/// @brief grammar: Top-level and unsorted grammar productions
3+
14
#ifndef GRAMMAR_HH
25
#define GRAMMAR_HH
36

impedance.hh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
/* Provide feedback to the grammar about failed queries to weed out
2-
unsupported productions. */
1+
/// @file
2+
/// @brief feedback to the grammar about failed productions
3+
34

45
#ifndef IMPEDANCE_HH
56
#define IMPEDANCE_HH

log.hh

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// @file
2+
/// @brief logging
3+
14
#ifndef LOG_HH
25
#define LOG_HH
36

@@ -7,12 +10,14 @@
710

811
#include "prod.hh"
912

13+
/// logger base class
1014
struct logger {
1115
virtual void generated(prod &query) { }
1216
virtual void executed(prod &query) { }
1317
virtual void error(prod &query, const pqxx::failure &e) { }
1418
};
1519

20+
/// logger for statistics collection
1621
struct stats_collecting_logger : logger {
1722
long queries = 0;
1823
float sum_nodes = 0;
@@ -21,6 +26,7 @@ struct stats_collecting_logger : logger {
2126
virtual void generated(prod &query);
2227
};
2328

29+
/// stderr logger
2430
struct cerr_logger : stats_collecting_logger {
2531
const int columns = 80;
2632
std::map<std::string, long> errors;
@@ -31,6 +37,7 @@ struct cerr_logger : stats_collecting_logger {
3137
void report(prod &p);
3238
};
3339

40+
/// logger to postgres database
3441
struct pqxx_logger : stats_collecting_logger {
3542
long id;
3643
std::shared_ptr<pqxx::connection> c;

prod.hh

+5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
/// @file
2+
/// @brief Base class for grammar productions
3+
14
#include <string>
25
#include <iostream>
36

47
#ifndef PROD_HH
58
#define PROD_HH
69

10+
/// Base class for walking the AST
711
struct prod_visitor {
812
virtual void visit(struct prod *p) = 0;
913
virtual ~prod_visitor() { }
1014
};
1115

16+
/// Base class for AST nodes
1217
struct prod {
1318
struct prod *pprod;
1419
struct scope *scope;

random.hh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// @file
2+
/// @brief randomness
3+
14
#ifndef RANDOM_HH
25
#define RANDOM_HH
36

relmodel.hh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// @file
2+
/// @brief supporting classes for the grammar
3+
14
#ifndef RELMODEL_HH
25
#define RELMODEL_HH
36
#include <string>

schema.hh

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// @file
2+
/// @brief schema information for grammar
3+
14
#ifndef SCHEMA_HH
25
#define SCHEMA_HH
36

0 commit comments

Comments
 (0)