-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.cson
More file actions
96 lines (85 loc) · 3.36 KB
/
snippets.cson
File metadata and controls
96 lines (85 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
################################################################################
# NOVA Snippets for Atom Editor #
#------------------------------------------------------------------------------#
# By: Eirik Schultz #
# Created: 17-Jan-2017 #
# For: Indra Navia AS - Tower #
################################################################################
#
# START C++ Snippets
#
# ------------------------------------------------------------------------------
# NOVA Legal snippet
'.source.c, .source.cpp, .source.cc, .souce.objcpp, .source.objc':
'NOVA Legal Header':
'prefix': 'nova-legal'
'body': """
// -*-C++-*-
//-----------------------------------------------------------------------------
/*
Author(s): ${1:Ola Nordmann}
Created: ${2:Date}
Release: $Revision$
Modified: $Date$
Path: $Source$
Code Review by: <name, date>
(c) Copyright 2017, Indra Navia AS, all rights reserved.*/
//------------------------------------------------------------------------------
"""
# ------------------------------------------------------------------------------
# NOVA Function example 1
'NOVA Function Ex. 1':
'prefix': 'nova-func1'
'body': """
/************************************************************
${1:FUNCTION_NAME}
*************************************************************
What is this function doing?
Does it change global variables?
Does it depend on other modules?
Does it have side effects?
(detailed description)
************************************************************/
//
//
${2:int} ${3:function_name}(${4:int32 *ptr_i, /* What is this pointing at? */
int16 i2, /* What does i2 contain? */
float64 d /* What is this doing ?? */})
{
//
${5: register short k1; /* What does this contain */}
${6:/* ... */}
//
} /* End of f1() */
"""
# ------------------------------------------------------------------------------
# NOVA Function example 2
'NOVA Function Ex. 2':
'prefix': 'nova-func2'
'body': """
/************************************************************
${1:FUNCTION_NAME}
*************************************************************
What is this function doing?
Does it change global variables?
Does it depend on other modules?
Does it have side effects?
(detailed description)
What is this pointing at?
What does i2 contain?
What is this doing ??
************************************************************/
${2:int16} ${3:*function_name}(${4:int32 *ptr_i,
int16 i2,
float64 d})
{
//
${5: register short k1; /* What does this contain */}
${6:/* ... */}
//
} /* End of f1() */
"""
# ------------------------------------------------------------------------------
#
# END C++ Snippets
#