summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-01-28 17:01:20 -0800
committerJosh Stone <jistone@redhat.com>2009-01-28 17:16:50 -0800
commit73267b89ea6ede28b1a0a10667774bca6eb2b37e (patch)
tree8004f6fc06820356033767d574dd228cc3ca78e7
parent4c2732a1dad1de295c9219ee3afac007b2d7ba05 (diff)
downloadsystemtap-steved-73267b89ea6ede28b1a0a10667774bca6eb2b37e.tar.gz
systemtap-steved-73267b89ea6ede28b1a0a10667774bca6eb2b37e.tar.xz
systemtap-steved-73267b89ea6ede28b1a0a10667774bca6eb2b37e.zip
Add Vim modelines for GNU style in stap
-rw-r--r--auto_free.h2
-rw-r--r--buildrun.cxx2
-rw-r--r--buildrun.h2
-rw-r--r--cache.cxx2
-rw-r--r--cache.h2
-rw-r--r--coveragedb.cxx2
-rw-r--r--coveragedb.h1
-rw-r--r--dwarf_wrappers.cxx2
-rw-r--r--dwarf_wrappers.h2
-rw-r--r--elaborate.cxx1
-rw-r--r--elaborate.h2
-rw-r--r--hash.cxx2
-rw-r--r--hash.h2
-rw-r--r--loc2c.h2
-rw-r--r--main.cxx2
-rw-r--r--parse.cxx1
-rw-r--r--parse.h2
-rw-r--r--session.h2
-rw-r--r--staptree.cxx1
-rw-r--r--staptree.h2
-rw-r--r--tapsets.cxx2
-rw-r--r--tapsets.h2
-rw-r--r--translate.cxx2
-rw-r--r--translate.h2
-rw-r--r--util.cxx1
-rw-r--r--util.h2
26 files changed, 47 insertions, 0 deletions
diff --git a/auto_free.h b/auto_free.h
index 58290821..53b13d47 100644
--- a/auto_free.h
+++ b/auto_free.h
@@ -56,3 +56,5 @@ private:
pointer_type& _ptr;
};
#endif
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/buildrun.cxx b/buildrun.cxx
index c626cf2a..6ce56a09 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -306,3 +306,5 @@ run_pass (systemtap_session& s)
rc = system (staprun_cmd.c_str ());
return rc;
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/buildrun.h b/buildrun.h
index 88a63a5e..98c81251 100644
--- a/buildrun.h
+++ b/buildrun.h
@@ -16,3 +16,5 @@ int run_pass (systemtap_session& s);
#endif // BUILDRUN_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/cache.cxx b/cache.cxx
index b1d3aa8a..35a37a00 100644
--- a/cache.cxx
+++ b/cache.cxx
@@ -295,3 +295,5 @@ unlink_cache_entry(const string &cache_ent_path)
unlink(mod_path.c_str()); //it must exist, globbed for it earlier
unlink(source_path.c_str()); //if its not there, no matter
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/cache.h b/cache.h
index 0cd433e4..1a9827b7 100644
--- a/cache.h
+++ b/cache.h
@@ -18,3 +18,5 @@ void clean_cache(systemtap_session& s);
long get_cache_file_size(const std::string &cache_ent_path);
long get_cache_file_weight(const std::string &cache_ent_path);
void unlink_cache_entry(const std::string &cache_ent_path);
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/coveragedb.cxx b/coveragedb.cxx
index aafcd545..452041fc 100644
--- a/coveragedb.cxx
+++ b/coveragedb.cxx
@@ -369,3 +369,5 @@ void update_coverage_db(systemtap_session &s)
}
#endif /* HAVE_LIBSQLITE3 */
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/coveragedb.h b/coveragedb.h
index df5782ca..3675e3b4 100644
--- a/coveragedb.h
+++ b/coveragedb.h
@@ -77,3 +77,4 @@ void update_coverage_db(systemtap_session &s);
#endif
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/dwarf_wrappers.cxx b/dwarf_wrappers.cxx
index f83c4665..3627b989 100644
--- a/dwarf_wrappers.cxx
+++ b/dwarf_wrappers.cxx
@@ -44,3 +44,5 @@ void dwfl_assert(const std::string& desc, bool condition)
if (!condition)
dwfl_assert(desc, -1);
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/dwarf_wrappers.h b/dwarf_wrappers.h
index abf2c1e5..959ece92 100644
--- a/dwarf_wrappers.h
+++ b/dwarf_wrappers.h
@@ -91,3 +91,5 @@ public:
#endif
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/elaborate.cxx b/elaborate.cxx
index db1a4d78..3b4c944c 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -4105,3 +4105,4 @@ typeresolution_info::resolved (const token*, exp_type)
num_newly_resolved ++;
}
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/elaborate.h b/elaborate.h
index df888360..c8697595 100644
--- a/elaborate.h
+++ b/elaborate.h
@@ -260,3 +260,5 @@ struct unparser;
#endif // ELABORATE_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/hash.cxx b/hash.cxx
index fb2f15c1..ac967efb 100644
--- a/hash.cxx
+++ b/hash.cxx
@@ -191,3 +191,5 @@ find_hash (systemtap_session& s, const string& script)
// Update C source name with new module_name.
s.translated_source = string(s.tmpdir) + "/" + s.module_name + ".c";
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/hash.h b/hash.h
index 246be9b8..d386ad03 100644
--- a/hash.h
+++ b/hash.h
@@ -35,3 +35,5 @@ public:
};
void find_hash (systemtap_session& s, const std::string& script);
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/loc2c.h b/loc2c.h
index 03f9e74c..67f4a38a 100644
--- a/loc2c.h
+++ b/loc2c.h
@@ -93,3 +93,5 @@ c_translate_pointer_store (struct obstack *pool, int indent,
Writes complete lines of C99, code forming a complete C block, to STREAM.
Return value is true iff that code uses the `deref' runtime macros. */
bool c_emit_location (FILE *stream, struct location *loc, int indent);
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/main.cxx b/main.cxx
index 649da15f..e0dfe299 100644
--- a/main.cxx
+++ b/main.cxx
@@ -1175,3 +1175,5 @@ pass_5:
return (rc||pending_interrupts) ? EXIT_FAILURE : EXIT_SUCCESS;
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/parse.cxx b/parse.cxx
index 7f1e5d2a..0419dcb9 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -2558,3 +2558,4 @@ parser::parse_symbol ()
return sym;
}
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/parse.h b/parse.h
index 2e2b656f..59046bf3 100644
--- a/parse.h
+++ b/parse.h
@@ -209,3 +209,5 @@ private: // nonterminals
#endif // PARSE_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/session.h b/session.h
index e6b409cf..9a28c936 100644
--- a/session.h
+++ b/session.h
@@ -192,3 +192,5 @@ struct systemtap_session
extern int pending_interrupts;
#endif // SESSION_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/staptree.cxx b/staptree.cxx
index fafefc4e..cc618111 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -2508,3 +2508,4 @@ require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
}
}
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/staptree.h b/staptree.h
index 12d84698..8c37776f 100644
--- a/staptree.h
+++ b/staptree.h
@@ -882,3 +882,5 @@ provide (deep_copy_visitor* v, T src)
}
#endif // STAPTREE_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/tapsets.cxx b/tapsets.cxx
index 9246d22c..45c7b0e4 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -9703,3 +9703,5 @@ all_session_groups(systemtap_session& s)
#undef DOONE
return g;
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/tapsets.h b/tapsets.h
index 6439d9ce..7165244b 100644
--- a/tapsets.h
+++ b/tapsets.h
@@ -20,3 +20,5 @@ std::vector<derived_probe_group*> all_session_groups(systemtap_session& s);
#endif // TAPSETS_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/translate.cxx b/translate.cxx
index 2f6898ae..7361edbe 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -5019,3 +5019,5 @@ translate_pass (systemtap_session& s)
return rc + s.num_errors();
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/translate.h b/translate.h
index 9921acd5..fdff9521 100644
--- a/translate.h
+++ b/translate.h
@@ -101,3 +101,5 @@ int translate_pass (systemtap_session& s);
#endif // TRANSLATE_H
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/util.cxx b/util.cxx
index 42f0beb5..7d191cd2 100644
--- a/util.cxx
+++ b/util.cxx
@@ -248,3 +248,4 @@ const string cmdstr_quoted(const string& cmd)
return quoted_cmd;
}
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
diff --git a/util.h b/util.h
index 6c69c998..2884e021 100644
--- a/util.h
+++ b/util.h
@@ -86,3 +86,5 @@ lex_cast_qstring(IN const & in)
out2 += '"';
return out2;
}
+
+/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */