Skip to content

Commit 59267da

Browse files
author
svorenova
committed
Add documentation to type_eq
1 parent 92a4326 commit 59267da

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/util/type_eq.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
/*******************************************************************\
22
3-
Module: Type Checking
3+
Module: Type checking
44
55
Author: Daniel Kroening, [email protected]
6+
Maria Svorenova, [email protected]
67
78
\*******************************************************************/
89

910
/// \file
10-
/// Type Checking
11+
/// Type checking
1112

1213
#include "type_eq.h"
1314

1415
#include "namespace.h"
1516
#include "std_types.h"
1617
#include "symbol.h"
1718

19+
/// Check types for equality. If either of the types is a symbol type, i.e. a
20+
/// reference into the symbol table, retrieve it from the namespace and compare.
21+
/// \param type1 The first type to compare.
22+
/// \param type2 The second type to compare.
23+
/// \param ns The namespace, needed for resolution of symbols.
1824
bool type_eq(const typet &type1, const typet &type2, const namespacet &ns)
1925
{
2026
if(type1==type2)

src/util/type_eq.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/*******************************************************************\
22
3-
Module:
3+
Module: Type checking
44
55
Author: Daniel Kroening, [email protected]
6+
Maria Svorenova, [email protected]
67
78
\*******************************************************************/
89

10+
/// \file
11+
/// Type checking
912

1013
#ifndef CPROVER_UTIL_TYPE_EQ_H
1114
#define CPROVER_UTIL_TYPE_EQ_H

0 commit comments

Comments
 (0)